Answered by:
How to use pipeline variables in Azure Pipelines for the AWS related task like Create/Update Cloudformation Task?

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.ymlI 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 ScriptThanks and Regards
Shaswata Mukherjee- Moved by Micah McKittrickMicrosoft employee Tuesday, October 29, 2019 3:58 PM
Tuesday, October 29, 2019 11:33 AM
Answers
-
I'd try asking for help over here.
https://developercommunity.visualstudio.com/spaces/21/index.html
https://developercommunity.visualstudio.com/spaces/22/index.html
https://stackoverflow.com/questions/tagged/tfs
https://stackoverflow.com/questions/tagged/azure-devops
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Wednesday, October 30, 2019 1:07 PM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, November 6, 2019 12:36 PM
Wednesday, October 30, 2019 11:32 AM
All replies
-
- Proposed as answer by jakaruna-MSFTMicrosoft employee Wednesday, October 30, 2019 4:39 AM
Tuesday, October 29, 2019 12:17 PM -
Hi @Jakaruna-MSFT,
I have checked this page but using inputs are possible in azure-pipeline.yaml, but I have an issue with the release pipeline. We dont use the azure-pipelines.yml in the release pipeline.
Thanks
Shaswata
Wednesday, October 30, 2019 10:28 AM -
I'd try asking for help over here.
https://developercommunity.visualstudio.com/spaces/21/index.html
https://developercommunity.visualstudio.com/spaces/22/index.html
https://stackoverflow.com/questions/tagged/tfs
https://stackoverflow.com/questions/tagged/azure-devops
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Wednesday, October 30, 2019 1:07 PM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, November 6, 2019 12:36 PM
Wednesday, October 30, 2019 11:32 AM