Uploaded image for project: 'Build'
  1. Build
  2. BUILD-868

Make use of Jenkins-sre role in Jenkins SRE deployment pipelines

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Neutral Neutral
    • None
    • None
    • Pipelines
    • None

      As for now we are using a IAM user to make deployments into AWS accounts. This user privileges are managed in foundation-internal-base project. The problem with this approach is that the mentioned project needs to be manually deployed, and on top of that is not that good practice to use a IAM user for that. 

      Thanks to Rubén from SRE Team we have now the AWS accounts enrolled in their AWS Control Tower setup, which means we can benefit from "good practices". Thus, we can start using the sre-platform platform role and other Jenkins SRE available functionality.

      To migrate the pipelines the following actions should be done:

      1. Add the withAWS line to the pipeline
      2. Run terraform init command with the param: backend-config='role_arn=arn:aws:iam::<foundation_account_id>:role/sre-platform
      3. Modify the terraform provider 

      The pipelines to modify are:

       

      After thar the jennkins user (arn:aws:iam::347299396223:user/jenkins.sre.magnolia-cloud.com) should be removed from the two AWS accounts: magnolia-core-expeimental and magnolia-core-production.

       

        Acceptance criteria

              roberto.gomez Roberto Gomez
              roberto.gomez Roberto Gomez
              Foundation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: