[] Application logs are streamed and available in a different service
[] Logs are rotated & expired appropriately
[] Continuous integration pipeline builds & runs tests for every commit
[] Continuous deployment pipeline make deployment of any tagged version a single click
[] Service has been deployed and tested in multiple environments with minimal configuration changes
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
linters-settings: | |
depguard: | |
list-type: blacklist | |
packages: | |
# logging is allowed only by logutils.Log, logrus | |
# is allowed to use only in logutils package | |
- github.com/sirupsen/logrus | |
packages-with-error-message: | |
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" | |
dupl: |
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
#!/bin/bash | |
read -p 'MFA Token: ' mfavar | |
line=$(aws sts get-session-token --profile $AWS_IDENTITY_ACCOUNT --serial-number $MFA_SERIAL --token-code $mfavar --output text) | |
echo $line | awk 'BEGIN {FS=" "}; {printf("[default]\naws_access_key_id=%s\naws_secret_access_key=%s\naws_session_token=%s\n#expiry %s",$2,$4,$5,$3)}' > ~/.aws/credentials |