This file contains hidden or 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
data = requests.get(url) | |
soup = BeautifulSoup(data.content, 'html.parser') | |
This file contains hidden or 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
cloud_category = url.split('/')[4] |
This file contains hidden or 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
cortezcloud_urls = ['https://www.cortez.cloud/categories/fundamentals', | |
'https://www.cortez.cloud/categories/serverless', | |
'https://www.cortez.cloud/categories/awsugperu'] | |
This file contains hidden or 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 requests | |
from bs4 import BeautifulSoup | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import os |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
const AWS = require("aws-sdk"); | |
const crypto = require("crypto"); | |
// Generate unique id with no external dependencies | |
const generateUUID = () => crypto.randomBytes(16).toString("hex"); | |
// Initialising the DynamoDB SDK | |
const documentClient = new AWS.DynamoDB.DocumentClient(); | |
exports.handler = async event => { |
This file contains hidden or 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
aws dynamodb create-table --cli-input-json file://dynamodbdefinition.json |
This file contains hidden or 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
{ | |
"AttributeDefinitions": [ | |
{ | |
"AttributeName": "id", | |
"AttributeType": "S" | |
} | |
], | |
"ProvisionedThroughput": { | |
"WriteCapacityUnits": 5, | |
"ReadCapacityUnits": 5 |
This file contains hidden or 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
# Usa los anteriores json para poder crearlos | |
#crear iam policy | |
aws iam create-policy --policy-name iampolicy_dynamodb_For_lambda --policy-document file://iampolicy_dynamodb_For_lambda.json | |
# crear IAM role y asumirlo | |
aws iam create-role --role-name LambdaRoleForDynamoDBAccess --assume-role-policy-document file://IAM_Role_Trust_Relationship_Lambda_Dynamodb.json | |
aws iam attach-role-policy --role-name LambdaRoleForDynamoDBAccess --policy-arn "arn:aws:iam::279624932954:policy/iampolicy_dynamodb_For_lambda" |