Skip to content

Instantly share code, notes, and snippets.

View agudecima-sinapsis's full-sized avatar

Agustin Decima agudecima-sinapsis

  • Yerba Buena - Tucuman
View GitHub Profile
@agudecima-sinapsis
agudecima-sinapsis / .gitlab-ci.yml
Last active May 14, 2024 20:17 — forked from tsoe77/.gitlab-ci.yml
Gitlab CI example for Gitlab + AWS OIDC integrated role
# gitlab ci template for terraform with webidentity role
# https://docs.gitlab.com/ee/ci/cloud_services/aws/ for how to setup gitlab oidc in aws.
#
# assuming it is a monorepo with vpc/dev and vpc/prod
# assuming AWS_IAM_ROLE_DEV and AWS_IAM_ROLE_PROD with role arn as values configured in the CI/CD settings
#
# setup step is to setup working dir and pass role arn
# validate step is to validate terraform
# terraform plan step runs on any other branch except in main
# terraform apply step runs only on main branch