Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue when creating `AwsCustomResource`

See original GitHub issue

Hi, 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)
                    "environmentId": cloud9_instance.environment_id,
                    "permissions": "read-write",
                    "userArn": user.user_arn

Error Log

The error is Failed to create resource. AWS[call.service] is not a constructor: image


  • CLI Version : 1.3.1
  • Framework Version: ``
  • OS : MacOS
  • Language : Python

This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

touzokucommented, Sep 28, 2021

Maybe at least some more meaningful error?

jogoldcommented, Apr 11, 2020

It should be Cloud9 and createEnvironmentMembership see

The underlying custom resource is using the AWS SDK for JavaScript.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found