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
--- | |
schemaVersion: '2.2' | |
description: Sets computer name for computer(s) that is(are) part of the domain, using the value of Name tag for the selected resource(s). | |
mainSteps: | |
- action: aws:runPowerShellScript | |
name: setComputerNameFromTag | |
precondition: | |
StringEquals: | |
- platformType | |
- Windows |
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
#!/bin/bash | |
export AWS_PROFILE='default' | |
mkdir -p iam/policies | |
POLICIES=$(aws iam list-policies --scope Local --query "Policies[*].{name: PolicyName, version: DefaultVersionId, arn: Arn}") | |
echo $POLICIES | jq -c '.[]' | \ | |
while read policy; do |