<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Delete-Vpc-Endpoints on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/delete-vpc-endpoints/</link>
    <description>Recent content in Delete-Vpc-Endpoints on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Wed, 27 Sep 2023 22:45:41 +1000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/delete-vpc-endpoints/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Deleting VPC Endpoints With AWS CLI</title>
      <link>https://blog.khmersite.net/p/deleting-vpc-endpoints-with-aws-cli/</link>
      <pubDate>Wed, 27 Sep 2023 22:45:41 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/deleting-vpc-endpoints-with-aws-cli/</guid>
      <description>&lt;p&gt;This is a quick note on how to delete VPC endpoints that are no longer needed with AWS CLI.&lt;/p&gt;
&lt;p&gt;First, we need to find all the vpc-endpoints-ids [1].&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;❯ aws ec2 describe-vpc-endpoints --query &amp;#39;VpcEndpoints[].VpcEndpointId&amp;#39;
[
    &amp;#34;vpce-097008f8d26caxxxx&amp;#34;,
    &amp;#34;vpce-07aaeabdefd8xxxx&amp;#34;,
    &amp;#34;vpce-0bc6d548ff2e0xxxx&amp;#34;
]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Note: I replaced the last 4 digit with &amp;lsquo;xxxx&amp;rsquo;. It&amp;rsquo;s a good idea to try out without really deleting the VPC endpoints by supplying &lt;code&gt;--dry-run&lt;/code&gt; to the command below:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;❯ aws ec2 delete-vpc-endpoints --vpc-endpoint-ids vpce-097008f8d26caxxxx vpce-07aaeabdefd8xxxx vpce-0bc6d548ff2e0xxxx --dry-run

An error occurred (DryRunOperation) when calling the DeleteVpcEndpoints operation: Request would have succeeded, but DryRun flag is set.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Let&amp;rsquo;s  delete all of the 3 resources:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
