question-mark
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.

CfnDeliveryChannel never completes and blocks deployment

See original GitHub issue

Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository’s issues are intended for feature requests and bug reports.

  • I’m submitting a …

    • 🪲 bug report
    • 🚀 feature request
    • 📚 construct library gap
    • ☎️ security issue or vulnerability => Please see policy
    • ❓ support request => Please see note at the top of this template.
  • What is the current behavior? If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce

CfnDeliveryChannel causes a deployment to sit idle for >30min and never completes

/** create the config bucket */
        const configRulesDeliveryBucket = new Bucket(this, 'configRulesDeliveryBucket', {
            bucketName: `aws-configrules-${config.accountNumber}-do-not-delete`,
            removalPolicy: cdk.RemovalPolicy.DESTROY
        });

        /** add cloudtrail bucket policies */
        configRulesDeliveryBucket.addToResourcePolicy(new PolicyStatement({
            effect: Effect.ALLOW,
            principals: [ new ServicePrincipal('config.amazonaws.com') ],
            actions: ['s3:*'],
            resources: [`${configRulesDeliveryBucket.bucketArn}`]
        }))


        /** we need a delivery channel for config rules */
        const configDeliveryChannel = new CfnDeliveryChannel(this, 'configDeliveryChannel', {
            s3BucketName: configRulesDeliveryBucket.bucketName,
            name: 'configDeliveryChannel'
        })

 /** create a config recorder so we capture everything first */
        const configRecorder = new CfnConfigurationRecorder(this, 'configRecorder', {
            name: `${config.customerName}ConfigRecorder`,
            roleArn: prototypingConfigServiceRole.roleArn,
            recordingGroup: {
                allSupported: false,
                includeGlobalResourceTypes: false,
                resourceTypes: [
                    "AWS::EC2::EIP",
                    "AWS::EC2::Instance",
                    "AWS::EC2::NetworkAcl",
                    "AWS::EC2::SecurityGroup",
                    "AWS::CloudTrail::Trail",
                    "AWS::EC2::Volume",
                    "AWS::EC2::VPC",
                    "AWS::IAM::User",
                    "AWS::IAM::Policy"
                ]
            }
        })

        configRecorder.node.addDependency(configDeliveryChannel)
  • What is the expected behavior (or behavior of feature suggested)?

Creation of a config rules delivery stream followed by a config rules recorder

  • Please tell us about your environment:

    • CDK CLI Version: 1.0.0 (build d89592e)
    • Module Version: 1.3.0
    • OS: [ OSX Mojave]
    • Language: [ TypeScript]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jogoldcommented, Dec 16, 2019

Related to #5181

1reaction
rix0rrrcommented, Dec 16, 2019

There seems to be a sharp edge here regarding setup of AWS Config, and L2 constructs would probably help this. I’m repurposing this issue to be a feature request for AWS Config L2s.

Feel free to continue discussing and upvoting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

class CfnDeliveryChannel (construct) · AWS CDK
A CloudFormation AWS::Config::DeliveryChannel . Specifies a delivery channel object to deliver configuration information to an Amazon S3 bucket and Amazon SNS ...
Read more >
Resource Creation Breaks Stack Deployment
Sometimes AWS resources depend on other resources, and the creation of one resource must be completed before the next one can be started....
Read more >
Integrating with CI/CD - AWS .NET deployment tool
Deploy .NET applications on AWS. ... This will ensure the tool never prompts for any questions that could block an automated process. dotnet...
Read more >
AWS CDK Toolkit - npm
If the environment was never bootstrapped (using cdk bootstrap ) ... When your stack finishes deploying, all stack outputs will be written to...
Read more >
CDK Shorts #2 – Parallel Deployments | Rehan van der Merwe
CDK stacks can be deployed in parallel by generating a cloud assembly output and then specifying the order explicitly.
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found