This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import math | |
import time | |
import datetime | |
import ipaddress | |
from boto3.dynamodb.conditions import Key, Attr | |
from os import environ | |
# Get the service resource. | |
dynamodb = boto3.resource('dynamodb', region_name=environ['DYNAMODB_REGION']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
import math | |
import time | |
import datetime | |
import ipaddress | |
from boto3.dynamodb.conditions import Key, Attr | |
from os import environ | |
# Get the service resource. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var http = require('http'); | |
// Load the SDK for JavaScript | |
const https = require('https'); | |
var AWS = require('aws-sdk'); | |
// Set the region | |
AWS.config.update({region: 'sa-east-1'}); |