Closed youngjeong46 closed 2 years ago
@youngjeong46 Hi, so I think this is an easy fix. If you could call it like:
blueprints.CodePipelineStack.builder()
.name("eks-blueprints-pipeline-test")
.owner("youngjeong46")
.repository({
repoUrl: 'eks-blueprints-pipeline-test',
credentialsSecretName: 'github-token',
targetRevision: 'main'
})
.enableCrossAccountKeys()
...
Would that work for you?
@jyidiego I was thinking something similar - if you are working on a PR feel free to proceed. Otherwise I can implement the bug fix.
cool. i'll do that, good chance to get my feet wet. :-)
Closed as we were able to verify for cross account use case. @jyidiego please feel free to reopen if you observe an issue for cross account keys on 1.2+
Describe the bug
I'm leveraging cross-account deployment using pipelines as follows, and have bootstrapped with the correct permissions:
When I try deploying, the cdk produces the error needing either a bucket with a key or a shared KMS cross-account key (needed when creating the cross-account Artifact bucket).
Expected Behavior
Deploy as intended (dev into the current account, and prod to a designated prod account)
Current Behavior
The following error occurs:
Reproduction Steps
See Above
Possible Solution
As described here, the key should be enabled across account with the following prop value when instantiating a new CodePipeline:
crossAccountKeys: true
.Additional Information/Context
No response
CDK CLI Version
2.20.0
EKS Blueprints Version
1.0.0
Node.js Version
v16.13.2
Environment details (OS name and version, etc.)
MacOS 10.15.7
Other information
No response