<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Aws-Cdk on thomaspaulin.me</title><link>https://thomaspaulin.me/tags/aws-cdk/</link><description>Aws-Cdk</description><generator>Hugo -- gohugo.io</generator><language>en-nz</language><lastBuildDate>Tue, 30 Apr 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://thomaspaulin.me/tags/aws-cdk/index.xml" rel="self" type="application/rss+xml"/><item><title>What happens if I deploy an AWS Code Pipeline via AWS CDK, but I already have 100 S3 buckets in my account?</title><link>https://thomaspaulin.me/2024/04/what-happens-if-i-deploy-an-aws-code-pipeline-via-aws-cdk-but-i-already-have-100-s3-buckets-in-my-account/</link><pubDate>Tue, 30 Apr 2024 00:00:00 +0000</pubDate><guid>https://thomaspaulin.me/2024/04/what-happens-if-i-deploy-an-aws-code-pipeline-via-aws-cdk-but-i-already-have-100-s3-buckets-in-my-account/</guid><description>&lt;p>When creating AWS Code Pipelines using AWS CDK an intermediate S3 bucket is created. This bucket holds the pipeline artifacts such as AWS Lambda code, or CloudFormation templates.&lt;/p>
&lt;p>This means that you need room in your AWS account to create a new S3 bucket if you&amp;rsquo;re deploying your pipeline (You may created 100 S3 buckets per-account by default). If you&amp;rsquo;re already at this limit the AWS CDK CLI will give you an error like the below:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="ln">1&lt;/span>&lt;span class="cl">An error occurred &lt;span class="k">while&lt;/span> validating the artifact bucket &lt;span class="s1">&amp;#39;{{this-is-generated-by-aws-cdk}}&amp;#39;&lt;/span>: No bucket with the name &lt;span class="o">{{&lt;/span>this-is-generated-by-aws-cdk&lt;span class="o">}}&lt;/span> was found. Choose a valid artifact bucket in &lt;span class="s1">&amp;#39;us-east-1&amp;#39;&lt;/span>, or create a new artifact bucket to use in your pipeline. &lt;span class="o">(&lt;/span>Service: AWSCodePipeline&lt;span class="p">;&lt;/span> Status Code: 400&lt;span class="p">;&lt;/span> Error Code: InvalidStructureException&lt;span class="p">;&lt;/span> Request ID: &lt;span class="o">{{&lt;/span>request-id-here&lt;span class="o">}}&lt;/span>&lt;span class="p">;&lt;/span> Proxy: null&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item></channel></rss>