Sara Jarjoura
08/28/2024, 2:28 PMRun cloudposse/github-action-atmos-get-setting@v1
with:
component: aws-to-github
stack: dev
settings-path: settings.github.actions_enabled
env:
AWS_ACCOUNT: << AWS ACCOUNT >>
ENVIRONMENT: dev
ATMOS_CLI_CONFIG_PATH: /home/runner/work/infra-identity/infra-identity/.github/config/atmos-gitops.yaml
result returned successfully
Run if [[ "false" == "true" ]]; then
if [[ "false" == "true" ]]; then
STEP_SUMMARY_FILE=""
if [[ "" == "true" ]]; then
rm -f ${STEP_SUMMARY_FILE}
fi
else
STEP_SUMMARY_FILE=""
fi
if [ -f ${STEP_SUMMARY_FILE} ]; then
echo "${STEP_SUMMARY_FILE} found"
STEP_SUMMARY=$(cat ${STEP_SUMMARY_FILE} | jq -Rs .)
echo "result=${STEP_SUMMARY}" >> $GITHUB_OUTPUT
if [[ "false" == "false" ]]; then
echo "Drift detection mode disabled"
cat $STEP_SUMMARY_FILE >> $GITHUB_STEP_SUMMARY
fi
else
echo "${STEP_SUMMARY_FILE} not found"
echo "result=\"\"" >> $GITHUB_OUTPUT
fi
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
AWS_ACCOUNT: 166189870787
ENVIRONMENT: dev
ATMOS_CLI_CONFIG_PATH: /home/runner/work/infra-identity/infra-identity/.github/config/atmos-gitops.yaml
found
Drift detection mode disabled
my atmos-gitops.yaml file looks like this
integrations:
github:
gitops:
terraform-version: 1.9.0
infracost-enabled: false
role:
plan: arn:aws:iam::${AWS_ACCOUNT}:role/iam-manager-${ENVIRONMENT}
apply: arn:aws:iam::${AWS_ACCOUNT}:role/iam-manager-${ENVIRONMENT}
my atmos.yaml file looks like
base_path: "./"
components:
terraform:
base_path: "resource/components/terraform/aws"
apply_auto_approve: false
deploy_run_init: true
init_run_reconfigure: true
auto_generate_backend_file: true
stacks:
base_path: "resource/stacks"
included_paths:
- "deploy/**/*"
excluded_paths:
- "deploy/*/_defaults.yaml"
name_pattern: "{environment}"
logs:
file: "/dev/stderr"
level: Info
settings:
github:
actions_enabled: true
# <https://pkg.go.dev/text/template>
templates:
settings:
# Enable `Go` templates in Atmos stack manifests
enabled: true
... yadda yadda template stuff
any thoughts? I feel like I must be missing a flag somewhere - I tried setting settings.github.actions_enabled to true but no luckErik Osterman (Cloud Posse)
08/28/2024, 2:31 PMSara Jarjoura
08/28/2024, 2:40 PMSara Jarjoura
08/28/2024, 2:40 PM