Comments (3)
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?
from aws-cdk.
Hi,
Had some issues with updating CDK, so moved to wsl2. Still seeing the same issue with the updated CDK
(.venv) (base) root@Subhashis-Desktop:/mnt/c/Users/Subhashis/Desktop/DHCDK# cdk synth
123456789
ap-south-1
jsii.errors.JavaScriptError:
@jsii/kernel.RuntimeError: Error: The 'account' property must be a concrete value (action: 'DeployBeta')
at Kernel._Kernel_ensureSync (/tmp/tmp0upb_l2n/lib/program.js:10491:23)
at Kernel.invoke (/tmp/tmp0upb_l2n/lib/program.js:9855:102)
at KernelHost.processRequest (/tmp/tmp0upb_l2n/lib/program.js:11696:36)
at KernelHost.run (/tmp/tmp0upb_l2n/lib/program.js:11656:22)
at Immediate._onImmediate (/tmp/tmp0upb_l2n/lib/program.js:11657:46)
at process.processImmediate (node:internal/timers:478:21)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/mnt/c/Users/Subhashis/Desktop/DHCDK/app.py", line 14, in <module>
DhAppPipelineStack(app, "DhAppPipelineStack", env=env)
File "/root/miniconda3/lib/python3.11/site-packages/jsii/_runtime.py", line 118, in __call__
inst = super(JSIIMeta, cast(JSIIMeta, cls)).__call__(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/Subhashis/Desktop/DHCDK/dhcdk/application_pipeline/dh_app_pipeline_stack.py", line 59, in __init__
beta_ecs_stage = self.create_deploy_stage("Beta", pipeline, build_output, kwargs["env"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/Subhashis/Desktop/DHCDK/dhcdk/application_pipeline/dh_app_pipeline_stack.py", line 91, in create_deploy_stage
stage.add_action(deploy_action)
File "/root/miniconda3/lib/python3.11/site-packages/aws_cdk/aws_codepipeline/__init__.py", line 5814, in add_action
return typing.cast(None, jsii.invoke(self, "addAction", [action]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/site-packages/jsii/_kernel/__init__.py", line 149, in wrapped
return _recursize_dereference(kernel, fn(kernel, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/site-packages/jsii/_kernel/__init__.py", line 399, in invoke
response = self.provider.invoke(
^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/site-packages/jsii/_kernel/providers/process.py", line 380, in invoke
return self._process.send(request, InvokeResponse)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/site-packages/jsii/_kernel/providers/process.py", line 342, in send
raise RuntimeError(resp.error) from JavaScriptError(resp.stack)
RuntimeError: Error: The 'account' property must be a concrete value (action: 'DeployBeta')
Subprocess exited with error 1
(.venv) (base) root@Subhashis-Desktop:/mnt/c/Users/Subhashis/Desktop/DHCDK# cdk --version
2.131.0 (build 92b912d)
from aws-cdk.
Even if I use an ARN directly, or use CfnOutput + Fn.import_value, the result is the same
I suppose the issue is with codepipeline_actions.EcsDeployAction
ecs_cluster = ecs.Cluster.from_cluster_arn(self, f"{stage}-DrhCluster", cluster_arn=ecs_cluster_arn)
ecs_service = ecs.FargateService.from_fargate_service_attributes(self, f"{stage}-DrhApplication", service_arn=ecs_service_arn, cluster=ecs_cluster)
# print(ecs_service)
deploy_action = codepipeline_actions.EcsDeployAction(
action_name=f"Deploy{stage}",
service=ecs_service,
image_file=build_output.at_path("imageDetail.json"),
run_order=1,
deployment_timeout=aws_cdk.Duration.minutes(60),
)
stage = pipeline.add_stage(
stage_name=stage
)
stage.add_action(deploy_action)
from aws-cdk.
Related Issues (20)
- (core): new tagging of existing AWS::EKS::AccessEntry resources is failing HOT 9
- rds: support for IO2 instance storage HOT 2
- aws_iam.Policy: Confusing parameter description in the Policy construct HOT 2
- codepipeline: EcsDeployAction missing ecs:TagResource HOT 2
- rds: Add support for MariaDB RDS Proxy HOT 8
- state machine : Dynamic passing of bucket and key to distributed map HOT 1
- (software.amazon.awscdk.services.lambda.Function): Recursive folder creation in cdk.out when lambda jar path is mentioned as "" HOT 1
- Personalize: Wrong attribute created in cloudformation (Python) HOT 5
- core: Over-aggressive cache fingerprinting on synthesize HOT 2
- batch: Cannot omit the start/end of target node on batch.MultiNodeContainer HOT 1
- eks: managed node group allocatable pods number error HOT 10
- ❗ NOTICE: List stack output change issue. HOT 2
- Stack Construct: when set stack-level tags with pseudo parameters such as Class Aws.STACK_NAME should emit error HOT 1
- software.amazon.awscdk.services.iam.ManagedPolicy: Tags not generated HOT 2
- docdb: I am getting cannot change VPC security group while doing a mojor version upgrade while changing engine version from 4.0.0 to 5.0.0 HOT 7
- ecs-patterns: enable to specify `securityGroups` in `NetworkLoadBalancedFargateService` HOT 3
- ecs: Bottlerocket support for AsgCapacityProvider HOT 1
- [aws_elasticloadbalancingv2]: Target Group 'slowStart' option can't be disabled HOT 2
- (@aws-cdk/aws-lambda): (missing `logGroup` property in type `FunctionProps` in 2.132.0) HOT 4
- (cli): `cdk watch` should stop after `synth` and not move to `deploy` if more changes are made during `synth` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cdk.