-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codepipeline-actions: RuntimeError: Error: The 'account' property must be a concrete value #29361
Comments
Hi 2.82.0 was pretty old version. Can you try the latest CDK version v2.131.0 from a clean repo and see if this issue still exists? |
Hi, Had some issues with updating CDK, so moved to wsl2. Still seeing the same issue with the updated CDK
|
Even if I use CfnOutput + Fn.import_value, the result is the same
|
Thank you for the report. Let's simplify the provided code snippets. Are you able to just create the This is a typescript sample that I can export class DummyStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps) {
super(scope, id, props);
const vpc = getDefaultVpc(this);
const cluster = new ecs.Cluster(this, 'Cluster', { vpc });
const sourceOutput = new codepipeline.Artifact();
const accountId = 'YOUR_ACCOUNT_ID';
// create a dummy sourceAction
const sourceAction = new codepipelineActions.CodeStarConnectionsSourceAction({
actionName: 'BitBucket_Source',
owner: 'aws',
repo: 'aws-cdk',
output: sourceOutput,
connectionArn: `arn:aws:codestar-connections:us-east-1:${accountId}:connection/12345678-abcd-12ab-34cdef5678gh`,
variablesNamespace: 'SomeSpace',
});
const deployAction = new codepipelineActions.EcsDeployAction({
actionName: 'foo',
service: ecs.FargateService.fromFargateServiceAttributes(this, 'FGService', {
cluster,
serviceArn: `arn:aws:ecs:us-east-1:${accountId}:service/cluster-name/service-name`,
}),
input: sourceOutput,
})
const pipeline = new codepipeline.Pipeline(this, 'MyPipeline');
pipeline.addStage({
stageName: 'Source',
actions: [sourceAction],
});
pipeline.addStage({
stageName: 'Deploy',
actions: [deployAction],
});
}
} |
I am guessing as you are using |
Hi @pahud, yes, passing the arn directly works, but even if I use Fn.import it doesn't work
This doesn't:
|
Facing the same issue for exactly the same usecase @subhashisbhowmik described above. Any suggestions on how to proceed? |
Hi team, any update on this? |
Describe the bug
I am seeing
RuntimeError: Error: The 'account' property must be a concrete value
duringcdk synth
Expected Behavior
cdk synth
succeedsCurrent Behavior
cdk synth
fails withRuntimeError: Error: The 'account' property must be a concrete value
During
cdk synth --profile <profile>
I get:Reproduction Steps
app.py
dh_app_pipeline_stack.py:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.82.0 (build 3a8648a)
Framework Version
No response
Node.js Version
v18.16.0
OS
Windows 10
Language
Python
Language Version
3.11
Other information
No response
The text was updated successfully, but these errors were encountered: