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 boto3 | |
| from email.header import Header | |
| SENDER_ADDRESS = 'no-reply@example.com' | |
| SENDER_NAME = '私だ' | |
| ses = boto3.client('ses', region_name='eu-west-1') | |
| def lambda_handler(event, context): |
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
| ## チケットへのリンク | |
| * https://example.com | |
| ## やったこと | |
| * このプルリクで何をしたのか? | |
| ## やらないこと |
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 boto3 | |
| cfn = boto3.client('cloudformation') | |
| def main(): | |
| # スタック一覧を取得する | |
| stacks = get_stacks() | |
| # 各スタックのリソース数を調べる |
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 boto3 | |
| import os | |
| import json | |
| import time | |
| DESTINATION_PHONE_NUMBER = os.getenv('DESTINATION_PHONE_NUMBER') | |
| SOURCE_PHONE_NUMBER = os.getenv('SOURCE_PHONE_NUMBER') | |
| INSTANCE_ID = os.getenv('INSTANCE_ID') | |
| CONTACT_FLOW_ID = os.getenv('CONTACT_FLOW_ID') | |
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
| BASE_STACK_NAME := App-Information | |
| prepare: | |
| aws cloudformation deploy \ | |
| --template-file prepare.yaml \ | |
| --stack-name $(BASE_STACK_NAME)-Prepare-${ENV} \ | |
| --capabilities CAPABILITY_NAMED_IAM \ | |
| --parameter-overrides Env=${ENV} | |
| describe-prepare: |
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 boto3 | |
| import os | |
| import json | |
| DESTINATION_PHONE_NUMBER = os.getenv('DESTINATION_PHONE_NUMBER') | |
| SOURCE_PHONE_NUMBER = os.getenv('SOURCE_PHONE_NUMBER') | |
| INSTANCE_ID = os.getenv('INSTANCE_ID') | |
| CONTACT_FLOW_ID = os.getenv('CONTACT_FLOW_ID') | |
| connect = boto3.client('connect') |
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 json | |
| import os | |
| import requests | |
| import locale | |
| import jpholiday | |
| from datetime import date, datetime, timedelta | |
| from typing import List, Tuple | |
| INCOMMING_WEBHOOK_URL = os.environ['INCOMMING_WEBHOOK_URL'] |
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 * as AWS from 'aws-sdk'; | |
| const ssm = new AWS.SSM(); | |
| export async function handler(event: any) { | |
| const id = event.pathParameters.id; | |
| var ssmSecureParam1 = await ssm.getParameter({ | |
| Name: '/CDK/Sample/SecureParam1', | |
| WithDecryption: true, |
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 * as apigateway from '@aws-cdk/aws-apigateway'; | |
| import * as lambda from '@aws-cdk/aws-lambda'; | |
| import * as dynamodb from '@aws-cdk/aws-dynamodb'; | |
| import { Duration } from '@aws-cdk/core'; | |
| import cdk = require('@aws-cdk/core'); | |
| import { ResourceName } from './resourceName'; | |
| export class AwscdkResourceNameSampleStack extends cdk.Stack { | |
| constructor(scope: cdk.Construct, resourceName: ResourceName, props?: cdk.StackProps) { |
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 boto3 | |
| import json | |
| class DynamodbCapacityChecker(object): | |
| def __init__(self): | |
| self.client = boto3.client('dynamodb', region_name='ap-northeast-1') | |
| def check(self) -> None: | |
| tables = self.get_dynamodb_tables() |
NewerOlder