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
| # reusable policy for the roles which Lambda has permission to assume | |
| data "aws_iam_policy_document" "lambda-assume-role-policy" { | |
| statement { | |
| actions = ["sts:AssumeRole"] | |
| principals = { | |
| type = "Service" | |
| identifiers = ["lambda.amazonaws.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
| #!/usr/bin/env bash | |
| if [ "$AWS_PROFILE" = "" ]; then | |
| echo "No AWS_PROFILE set" | |
| exit 1 | |
| fi | |
| for region in $(aws ec2 describe-regions --region eu-west-1 | jq -r .Regions[].RegionName); do |
Handy one-liners for sed
Mar. 23, 2001 - version 5.1 - compiled by Eric Pement [email protected]
Latest version of this file is usually at:
-
This file is also available in Portuguese at:
| Title | Description