none
How to use pipeline variables in Azure Pipelines for the AWS related task like Create/Update Cloudformation Task? RRS feed

  • Question

  • Hi,

    This is related to Azure DevOps. I am trying to create lambda, cron job, dashboard and push some content in S3. I have created a repo with the following structure:

    repo
    -- index.js ----> Contains the lambda code
    -- package.json
    -- cloud-formation-template.yml

    I have created scripts to build the package. I have to deploy the entire thing via the release pipeline. I have an issue:

    I want to dynamically create the name of the s3 bucket based on the accountId which is a pipeline variable + "xyz" in the cloud-formation-template.yml. I want to know how to access the pipeline variable in the template?
    The current setup of the release pipeline is 

    Stage: Dev
    Agent Job:
      Assume Role
      S3 Upload
      Create/Update Cloudformation Stack
      Bash Script

    Thanks and Regards
    Shaswata Mukherjee

    Tuesday, October 29, 2019 11:33 AM

Answers

All replies