(opensearch): Not able to deploy the stack over pipeline
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the bug
When we try to deploy the OpenSearch stack as part of Pipeline, stack is getting failing due to missing asset parameters.
`Action execution failed
Parameters: [AssetParameters9d784cf317cead201dfe56ed0404d6d23eba6d499ca7354138230c2267f2fe90S3BucketB21FB59F, AssetParameters9d784cf317cead201dfe56ed0404d6d23eba6d499ca7354138230c2267f2fe90ArtifactHashC00C7285, AssetParameters9d784cf317cead201dfe56ed0404d6d23eba6d499ca7354138230c2267f2fe90S3VersionKey73D4F058] must have values (Service: AmazonCloudFormation; Status Code: 400; Error Code: ValidationError; Request ID: c6ae6178-62de-42a5-b8e1-23f975401e97; Proxy: null)`
### Expected Behavior
Pipeline should failed due to asset parameter missing error.
### Current Behavior
It should not fail as it creates nested stacks which needs s3 buckets to create Lambdas.
### Reproduction Steps
1. Create a opensearch stack as part of stage in pipeline.
```ts
export class AppiInfraStage extends Stage {
constructor(scope: Construct, id: string, props: pEnvPros) {
super(scope, id, props);
const vpcStack = new iVPCStack(this, `avpcStack${props.wEnv}`, {
wEnv: props.wEnv,
config: props.config,
});
const kmsStack = new ikmsStack(this, `ikmsStack${props.wEnv}`, {
wEnv: props.wEnv,
config: props.config,
});
const iopenSearchStack = new openSearchStack(this, `iopenSearchStack${props.wEnv}`, {
wEnv: props.wEnv,
config: props.config,
vpc: vpcStack.iVPC,
privateSB: vpcStack.privateSN,
publicSB: vpcStack.publicSN,
});
}
}
```
deploy the stack, you will get the error for opensearch stack deployment.
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### CDK CLI Version
1.157.0
### Framework Version
CDK v1.
### Node.js Version
16
### OS
MAC
### Language
Typescript
### Language Version
typescript 4.4.0
### Other information
_No response_
Contributor guide
Research direction
Start by reproducing the deployment from the AppiInfraStage example, focusing on the openSearchStack nested stack and its generated asset parameters. Inspect the CloudFormation action failure and asset handling during the pipeline deployment; done means the OpenSearch stack deploys successfully without missing asset parameter errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100