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
Param( | |
[array]$region = @( "eu-west-1") | |
) | |
foreach ($item in $region) { | |
echo $item | |
} | |
#PS> .\array_as_param.ps1 us-east-1,eu-west-1 |
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
# PowerShell | |
$regions = "eu-west-1" | |
foreach ($region in $regions) { | |
aws cloudformation create-stack ` | |
--parameters file://$PWD\..\templates\stack_parameters.json ` | |
--tags file://$PWD\..\templates\stack_tags.json ` | |
--stack-policy-body file://$PWD\..\templates\stack_policy.json ` | |
--template-body file://$PWD\..\templates\log_bucket_template.json ` |
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
// requirements | |
// aws cli has to be installed | |
// working AWS credentials file ~/.aws/credentials | |
// copy this file as tasks.json under the .vscode directory in your templates project directory | |
// open your CloudFormation template and hit Ctrl + Shift + B | |
{ | |
"version": "0.1.0", | |
"command": "aws", | |
"isShellCommand": true, |
NewerOlder