Issue when creating `AwsCustomResource`
See original GitHub issueHi, I’m getting an error when creating the AwsCustomResource
.
Reproduction Steps
cr.AwsCustomResource(self, 'Cloud9IAMMembership',
resource_type='Custom::Cloud9IAMMembership', policy=cr.AwsCustomResourcePolicy.from_sdk_calls(resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE)
on_create=cr.AwsSdkCall(
action='CreateEnvironmentMembership',
service='cloud9',
parameters={
"environmentId": cloud9_instance.environment_id,
"permissions": "read-write",
"userArn": user.user_arn
},
physical_resource_id=cr.PhysicalResourceId.from_response("environmentId")
),
)
Error Log
The error is Failed to create resource. AWS[call.service] is not a constructor
:
Environment
- CLI Version :
1.3.1
- Framework Version: ``
- OS :
MacOS
- Language :
Python
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
class AwsCustomResource (construct) · AWS CDK
Defines a custom resource that is materialized using specific AWS API calls. These calls are created using a singleton Lambda function. Use this...
Read more >Error : Access denied When creating AWS custom resource
Found the solution for my issue->. The custom resource I am creating is in Account B. S3 bucket is in account A. I...
Read more >Implementing Custom Resources with AWS CDK - Medium
CDK Implements the AWSCustomResource — a lambda-backed custom resource that ... A documentation issue was created and I expect the docs to be...
Read more >AWS Custom Resource using CDK AwsCustomResource ...
If you want to create a subscription when the SNS topic and the endpoint are in different regions, it is not possible with...
Read more >@aws-cdk/custom-resources - npm
In this case you can use the AwsCustomResource construct. This construct creates a custom resource that can be customized to make specific API ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe at least some more meaningful error?
It should be
Cloud9
andcreateEnvironmentMembership
see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Cloud9.htmlThe underlying custom resource is using the AWS SDK for JavaScript.