[1] https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/best-practices.html
aws ec2 describe-volumes --region "$region" \
--filters Name=status,Values=available \
--query 'Volumes[].[VolumeId]' --output text
| # References | |
| https://julsimon.medium.com/resurrecting-a-bricklens-5596f38931b3 | |
| https://web.archive.org/web/20231003184229/https://docs.aws.amazon.com/deeplens/latest/dg/deeplens-troubleshooting-factory-reset.html | |
| https://s3.amazonaws.com/deeplens-public/factory-restore/DeepLensFactoryRestore.zip | |
| https://s3.amazonaws.com/deeplens-public/factory-restore/DeepLensFactoryRestore_hw_1_1.zip | |
| https://s3.amazonaws.com/deeplens-public/factory-restore/DeepLensRestore_1.1.17.zip |
| from pathlib import Path | |
| import os | |
| def make_temp_dir(temp_dir): | |
| try: | |
| os.makedirs(temp_dir, exist_ok=True) | |
| except OSError: | |
| pass | |
| HOME_DIR = str(Path.home()) |
[1] https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/best-practices.html
aws ec2 describe-volumes --region "$region" \
--filters Name=status,Values=available \
--query 'Volumes[].[VolumeId]' --output text
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import boto3 | |
| ddb_cli = boto3.client('dynamodb') | |
| ddb_cli.update_item(TableName='Table1', | |
| Key={'Pk': {'S': 'foo'}, 'Sk': {'S': 'bar'}}, | |
| UpdateExpression='SET st.#k1 = :v1', | |
| ExpressionAttributeNames={'#k1': '0'}, |
| // https://github.com/aws-amplify/amplify-js/issues/4639 | |
| const dict = { | |
| "pt-br": { | |
| "Sign In": "Entrar", | |
| "Sign in": "Entrar", | |
| "Sign Up": "Registrar", | |
| "Sign Out": "Sair", | |
| "Confirm Sign Up": "Confirmar Registro", | |
| "Username": "Usuário", |
| import subprocess | |
| from xml.etree import ElementTree as ET | |
| import pandas as pd | |
| import re | |
| import logging | |
| import sys | |
| import os.path | |
| logging.basicConfig(level=logging.DEBUG) | |
| logger = logging.getLogger(__name__) |
| #!/bin/bash -e | |
| # This is an example on how to setup roles using CLI | |
| # for cross account access in Kinesis. | |
| # WARNING: You should review this code before using it on your account | |
| # See https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html | |
| if [ "$#" -ne 2 ]; then | |
| CMD=`basename "$0"` | |
| echo "./$CMD <profile-account-with-resource> <profile-account-use-resource>" |
| schema = aws_kinesisanalytics.CfnApplication.InputSchemaProperty( | |
| record_columns=[col1], | |
| record_format=aws_kinesisanalytics.CfnApplication.RecordFormatProperty( | |
| record_format_type="CSV", | |
| mapping_parameters=aws_kinesisanalytics.CfnApplication.MappingParametersProperty( | |
| csv_mapping_parameters=aws_kinesisanalytics.CfnApplication.CSVMappingParametersProperty( | |
| record_column_delimiter=";", | |
| record_row_delimiter="|" | |
| ) | |
| ) |
| pip install --upgrade awscli | |
| aws mediastore put-lifecycle-policy --container-name myfirstcontainer --lifecycle-policy file://policy.json | |
| aws mediastore get-lifecycle-policy --container-name myfirstcontainer |