aws / aws/aws-toolkit-azure-devops
CDK bootstrapping fail, unable to parse environment specification
- Dominant language
- TypeScript
- Stars
- 258
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
**CDK bootstrap fail, unable to parse environment specification using AWSShellScript@1**
**Reproduction**
1. Prepare a pipeline script for ```cdk bootstrap```
e.g.
```yml
- task: AWSShellScript@1
inputs:
awsCredentials: 'prod'
regionName: 'ap-southeast-2'
scriptType: 'inline'
inlineScript: |
echo "Bootstrapping environment"
cdk bootstrap aws://$(ACCOUNT)/$(REGION)
displayName: 'Deploying Project Infrastructure on Production'
```
2. Run the pipeline
**Expected behavior**
It should be able to go through the bootstrapping process without errors as awsCredentials, account and regions specification provided

However, after aws shell script task upgrade to 1.11.0, it no longer be able to cdk bootstrap and keep throwing errors on **unable to parse environment specification**

**Your Environment**
- On-prem or cloud based?: Cloud base
- Azure DevOps version: Version Dev18.M194.1 (AzureDevOps_M194_20211112.8)
- AWS Toolkit for Azure DevOps version: AWS CDK latest
Contributor guide
Research direction
Start with the supplied Azure DevOps pipeline and compare AWSShellScript@1 behavior before and after version 1.11.0, then trace the repository's TypeScript task implementation and its CDK bootstrap invocation. Done means the reproduced cdk bootstrap command accepts the supplied account and region environment specification and completes without the parsing error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, azure, yaml
- Domain
- cli, cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100