<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jon Holman</title>
    <description>The latest articles on DEV Community by Jon Holman (@jonholman_).</description>
    <link>https://dev.to/jonholman_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F561660%2F0ba9e049-6dfd-4686-8676-f3c0a5f5e015.jpg</url>
      <title>DEV Community: Jon Holman</title>
      <link>https://dev.to/jonholman_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jonholman_"/>
    <language>en</language>
    <item>
      <title>America Can Still Lose the A.I. Race to Itself</title>
      <dc:creator>Jon Holman</dc:creator>
      <pubDate>Tue, 01 Sep 2026 20:50:25 +0000</pubDate>
      <link>https://dev.to/jonholman_/america-can-still-lose-the-ai-race-to-itself-1bf</link>
      <guid>https://dev.to/jonholman_/america-can-still-lose-the-ai-race-to-itself-1bf</guid>
      <description>&lt;p&gt;At 5:21 p.m. Eastern on Friday, June 12, Anthropic received a United States government directive. By nightfall, two of the most capable artificial-intelligence models in the world had gone dark after a Commerce Department export-control directive prompted Anthropic to take them offline worldwide.&lt;/p&gt;

&lt;p&gt;The directive required Anthropic to prevent access to Claude Fable 5 and Claude Mythos 5 by any foreign national, whether that person was inside or outside the United States. It extended even to Anthropic's own foreign-national employees. Because the company had no reliable way to verify every user's nationality in real time, it &lt;a href="https://www.anthropic.com/news/fable-mythos-access" rel="noopener noreferrer"&gt;suspended both models for everyone&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The controls remained in place until June 30. On July 1, Anthropic restored Fable globally. Mythos took a narrower path: after government approval on June 26, access returned to a set of United States organizations while Anthropic continued coordinating with the government over broader domestic and international access.&lt;/p&gt;

&lt;p&gt;That sounds like a short outage with a happy ending. It was neither.&lt;/p&gt;

&lt;p&gt;I have spent years building systems where a dependency going unavailable is not an abstraction. Once software is woven into a product or an operating process, access to it becomes part of the architecture. A model that can be withdrawn immediately under a company-specific determination and factual rationale no customer could have read is no longer only a technical dependency. It is a bet on unpublished policy.&lt;/p&gt;

&lt;p&gt;The United States needs to govern frontier A.I. It also needs companies, researchers, investors, and customers to know what the rules are before the government enforces them. June showed how far apart those two needs remain.&lt;/p&gt;

&lt;h2&gt;
  
  
  The security concern was real
&lt;/h2&gt;

&lt;p&gt;The government's concern was not invented. Fable and Mythos shared the same underlying model, but Fable was released with strong safeguards for general use while Mythos, with fewer safeguards, went only to a small group of defensive-cybersecurity partners. Anthropic says Mythos can find and exploit software vulnerabilities more effectively than any other model and all but the most skilled human security experts. That is a serious capability to govern.&lt;/p&gt;

&lt;p&gt;The specific report behind the June directive, however, concerned a bypass of Fable's safeguards. According to &lt;a href="https://www.anthropic.com/news/redeploying-fable-5" rel="noopener noreferrer"&gt;Anthropic's account after the controls were lifted&lt;/a&gt;, Amazon researchers prompted Fable to identify several software vulnerabilities and, in one case, produce code demonstrating how a vulnerability could be exploited.&lt;/p&gt;

&lt;p&gt;That deserves serious attention. A model that materially lowers the cost of finding and exploiting security flaws can affect national security even when its ordinary users have harmless intentions.&lt;/p&gt;

&lt;p&gt;But the details also matter. Anthropic said less capable models could identify the same vulnerabilities and that every other model it tested could reproduce the single exploit demonstration. It characterized the task as routine defensive-security work that its safeguards had blocked out of caution, not the exposure of a distinct Mythos capability. Anthropic is an interested party, so its interpretation should not be the final word. It should be tested against an independent technical standard.&lt;/p&gt;

&lt;p&gt;That is precisely what was missing.&lt;/p&gt;

&lt;p&gt;The initial directive arrived without a published severity test, a disclosed threshold, or a graduated response. The models went from released to globally unavailable in a few hours. This came despite thousands of hours of pre-release red-teaming by Anthropic, the United States government, the United Kingdom's A.I. Security Institute, and outside organizations.&lt;/p&gt;

&lt;p&gt;Anthropic subsequently trained a more targeted classifier, which the Commerce Department's Center for A.I. Standards and Innovation tested along with the earlier safeguards. The company also proposed a common framework for judging jailbreaks and committed to expanding early government access, dedicating staff to government evaluations, and providing resources for joint research. Those are useful responses. They arrived after the shutdown because no shared process had told either side what response a finding of this kind should trigger.&lt;/p&gt;

&lt;p&gt;A reproducible security problem can justify emergency action. It does not justify governing indefinitely by surprise.&lt;/p&gt;

&lt;h2&gt;
  
  
  The earlier blacklist changes how June must be read
&lt;/h2&gt;

&lt;p&gt;The June export directive did not occur in isolation.&lt;/p&gt;

&lt;p&gt;For months, Anthropic and the Pentagon had been negotiating over military access to Claude. The Pentagon wanted contractual permission for “all lawful uses” and argued that a private vendor should not have veto power over military operations. Anthropic supported government use of its models but insisted on two exclusions: &lt;a href="https://www.anthropic.com/news/statement-department-of-war" rel="noopener noreferrer"&gt;mass domestic surveillance of Americans and fully autonomous weapons&lt;/a&gt;. The company's position was not that it should choose military objectives. It was that current models were not reliable enough to select and engage targets without human control, and that A.I.-enabled mass surveillance would threaten fundamental rights.&lt;/p&gt;

&lt;p&gt;Those limits were contractual, not a technical kill switch. Once Claude Gov was deployed, Anthropic could not enforce them through the model and had no direct visibility into how the government used it.&lt;/p&gt;

&lt;p&gt;On February 27, after Anthropic refused to remove those limits, President Trump ordered every federal agency to cease using its technology. Defense Secretary Pete Hegseth then directed the Pentagon to designate Anthropic a supply-chain risk and announced that no military contractor, supplier, or partner could conduct any commercial activity with it. The public language was not restrained procurement language. The president called Anthropic a “radical left, woke company,” while Hegseth accused it of arrogance and betrayal.&lt;/p&gt;

&lt;p&gt;The authority invoked for the designation was designed for a different problem. &lt;a href="https://uscode.house.gov/view.xhtml?req=%28title%3A10+section%3A3252+edition%3Aprelim" rel="noopener noreferrer"&gt;Section 3252 of Title 10&lt;/a&gt; defines a supply-chain risk around the danger that an adversary will sabotage or covertly subvert a national-security system. It lets the Pentagon exclude a source from sensitive procurements when that source creates such a risk. It does not turn a public disagreement over contract terms into sabotage.&lt;/p&gt;

&lt;p&gt;Anthropic challenged the actions in federal court. On March 26, Judge Rita Lin issued a preliminary injunction. On August 27, after reviewing the government's administrative record, she &lt;a href="https://cases.justia.com/federal/district-courts/california/candce/3%3A2026cv01996/465515/250/0.pdf" rel="noopener noreferrer"&gt;granted Anthropic summary judgment on its First Amendment, due-process, and core administrative-law claims&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The summary-judgment opinion is more damning than the preliminary one. The record supporting the designation consisted principally of a four-page memorandum written after two of the three challenged actions. The government retreated from its claim that Anthropic retained backdoor access to models once they were deployed in national-security systems. It conceded that Anthropic's models were no riskier in that respect than comparable black-box models. What remained was the department's claim that it could not trust Anthropic because the company had criticized it publicly.&lt;/p&gt;

&lt;p&gt;Judge Lin concluded that the designation violated the statute and that the broader measures were “illegal and baseless.” She also emphasized what the ruling did &lt;strong&gt;not&lt;/strong&gt; do: the Pentagon remains free to select a different vendor. Procurement discretion was never the problem. Using national-security authority to punish a company for public criticism was.&lt;/p&gt;

&lt;p&gt;That ruling resolved the district-court challenge to the Pentagon measures under Section 3252. A parallel proceeding in the D.C. Circuit challenges the department's procurement determination under &lt;a href="https://www.law.cornell.edu/uscode/text/41/4713" rel="noopener noreferrer"&gt;Section 4713 of Title 41&lt;/a&gt;. The appeals court denied interim relief in April without deciding the merits, later consolidated a second petition, and had not resolved the merits as of August 31.&lt;/p&gt;

&lt;p&gt;The August ruling does not establish that the separate June export directive was retaliation. The two actions came from different legal processes, addressed different claimed risks, and must be judged on their own records. There is no public evidence directly tying the June suspension to retaliation.&lt;/p&gt;

&lt;p&gt;But the sequence matters. Eleven weeks before an export-control directive prompted Anthropic to suspend two frontier models worldwide, a federal judge had already found serious evidence that the administration used a national-security rationale pretextually against the same American developer. Anyone asked to trust an undisclosed rationale in June was entitled to remember what the court had found in March. The August merits decision makes that concern stronger, not weaker.&lt;/p&gt;

&lt;h2&gt;
  
  
  This is not only about Anthropic
&lt;/h2&gt;

&lt;p&gt;It would be easy to reduce the story to whether one likes Anthropic's politics or trusts its safety claims. That misses the larger risk.&lt;/p&gt;

&lt;p&gt;OpenAI's release of GPT-5.6 Sol followed a different path, but it reflected the same unsettled boundary between government oversight and product deployment. OpenAI said it had &lt;a href="https://openai.com/index/previewing-gpt-5-6-sol/" rel="noopener noreferrer"&gt;previewed its plans and the models' capabilities to the government&lt;/a&gt; and, at the government's request, initially limited access to trusted partners whose participation was disclosed to Washington. OpenAI also said that arrangement should not become the long-term default.&lt;/p&gt;

&lt;p&gt;That limit was temporary. On July 9, OpenAI &lt;a href="https://openai.com/index/gpt-5-6/" rel="noopener noreferrer"&gt;made the GPT-5.6 family, including Sol, generally available&lt;/a&gt; across ChatGPT, Codex, and its A.P.I.&lt;/p&gt;

&lt;p&gt;That was not a forced shutdown, and it should not be described as one. Pre-release evaluation and a staged launch can be responsible ways to manage an unusually capable model. The important point is that release conditions for frontier systems are already being shaped through direct, case-by-case government involvement while the durable public framework is still being built.&lt;/p&gt;

&lt;p&gt;Case-by-case coordination is unavoidable at the edge of a fast-moving technology. As a governing model, it is fragile. It rewards access, leaves outsiders guessing, and can make materially similar decisions turn on which company is in the room or which official signs the letter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Leadership is a system, not a benchmark
&lt;/h2&gt;

&lt;p&gt;When people ask whether the United States will remain the A.I. leader, the conversation often collapses into a horse race: Which company owns the best model this month? Which country tops the latest benchmark?&lt;/p&gt;

&lt;p&gt;That is not what durable leadership means. Leadership is the ability to create, finance, deploy, improve, and commercialize successive generations of systems. It rests on at least four inputs: talent, capital, compute, and a predictable legal environment.&lt;/p&gt;

&lt;p&gt;America is extraordinarily strong in the first three. &lt;a href="https://hai.stanford.edu/assets/files/ai_index_report_2026_chapter_1_research_development.pdf" rel="noopener noreferrer"&gt;Stanford's 2026 A.I. Index&lt;/a&gt; counts 5,427 data-center facilities in the United States, more than ten times the count in any other country, although facility count does not measure size, computing capacity, or utilization. American private A.I. investment remains far ahead of every competitor. On Stanford's open-source measure—cumulative GitHub stars for qualifying projects—U.S.-based projects lead, though the measure excludes activity on Chinese platforms such as Gitee and GitCode.&lt;/p&gt;

&lt;p&gt;The same report contains a warning. Its 12-month rolling net flow of selected top A.I. authors and inventors into the United States—arrivals minus departures—has &lt;a href="https://hai.stanford.edu/ai-index/2026-ai-index-report/research-and-development" rel="noopener noreferrer"&gt;fallen 89 percent since 2017&lt;/a&gt;, including an 80 percent decline in the latest year measured. The measure remained positive at 26.0 in 2025, and the United States still has more A.I. talent than any other country. This is a collapse in the recruitment margin, not 89 percent fewer people arriving and not an empty domestic workforce. The decline began long before the events described here. It nevertheless shows that America's ability to attract people is not automatic.&lt;/p&gt;

&lt;p&gt;Neither is its ability to attract deployment.&lt;/p&gt;

&lt;p&gt;Capital can price a known regulatory burden. Engineers can design around a published restriction. Customers can diversify around a disclosed availability risk. What none of them can reliably model is a rule discovered only when a product is switched off, a company is publicly blacklisted, or an official later supplies the legal theory.&lt;/p&gt;

&lt;p&gt;The immediate cost is disruption. The larger cost is that teams quietly decide the United States is a superb place to train a model but an unpredictable place to release one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What durable frontier-model governance should look like
&lt;/h2&gt;

&lt;p&gt;The answer is not to leave model companies alone. Frontier developers should not get to grade their own security work, define every acceptable use, and declare every launch safe. Government has both a legitimate role and capabilities private labs do not have.&lt;/p&gt;

&lt;p&gt;That role needs structure.&lt;/p&gt;

&lt;p&gt;First, restrictions should attach to &lt;strong&gt;capabilities and evidence&lt;/strong&gt;, not to a company name. If a reproducible jailbreak crosses a national-security threshold, the same threshold should apply to every model that can perform the relevant task. Anthropic's claim that older and competing models reproduced the underlying vulnerability findings and exploit demonstration is exactly the kind of assertion an independent evaluator should confirm or reject.&lt;/p&gt;

&lt;p&gt;Second, emergency orders should contain their own expiration and review. Government sometimes must act before it can publish everything it knows. An immediate restriction can still identify its legal authority, the category of risk, the people or systems covered, the official responsible for review, and the date on which the order expires unless renewed with additional findings.&lt;/p&gt;

&lt;p&gt;Third, the response should be proportional. A technical finding might justify a classifier update, monitored access, a trusted-researcher program, a delayed release, or a temporary limit on one capability. Global suspension should be available when the risk warrants it, but it should be the end of the ladder rather than the only rung.&lt;/p&gt;

&lt;p&gt;Fourth, compliance must be technically possible. An order based on a foreign-person distinction cannot simply assume that a public A.P.I. provider reliably collects and can operationalize that status in real time. If the government requires an identity distinction that the service does not collect, it must define a workable mechanism or choose a narrower control. Otherwise an apparently targeted rule predictably becomes a worldwide ban.&lt;/p&gt;

&lt;p&gt;Fifth, decisions need due process. A company should receive the evidence it can lawfully see, an opportunity to respond, and a path to prompt independent review. The government must remain free to stop buying a product. A procurement decision and a punitive declaration that reaches unrelated private business are not the same thing.&lt;/p&gt;

&lt;p&gt;Finally, the public deserves an after-action standard. Classified details can remain classified. The governing rule cannot. Once an emergency passes, government should explain what category of event triggered action, which mitigation ended it, and how a future developer can avoid repeating the same failure.&lt;/p&gt;

&lt;p&gt;None of this is a plea for slow government. It is a design for fast government whose decisions survive the emergency.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reversal is not the resolution
&lt;/h2&gt;

&lt;p&gt;The June controls were lifted. Fable returned globally, while Mythos returned first to a limited set of approved United States organizations. Anthropic improved its safeguards and expanded government testing. The federal district court has now ruled against the Pentagon's blacklist on a full record, while the parallel D.C. Circuit proceeding remains unresolved.&lt;/p&gt;

&lt;p&gt;A skeptic can call that the system working. In part, it is. The government's position changed after technical review, safeguard changes, and negotiated commitments, and judicial review constrained unlawful action in the Pentagon case.&lt;/p&gt;

&lt;p&gt;But speed of reversal does not cure arbitrariness of imposition. A rule learned by having a product switched off is not a rule. It is a decision. A company vindicated in the Pentagon case six months after being branded a national-security threat still spent those months under the threat.&lt;/p&gt;

&lt;p&gt;The country best positioned to nurture the next generation of A.I. is still this one. That is why these episodes should alarm anyone who wants it to remain so. American leadership is likelier to be squandered at home than taken in a single dramatic victory by a foreign challenger. It can be lost one directive, one after-the-fact restriction, and one unpublished judgment at a time.&lt;/p&gt;

&lt;p&gt;Can America remain the A.I. leader? Yes. Whether it will is now a decision the government makes every time it reaches for the pen.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>aigovernance</category>
      <category>technology</category>
      <category>policy</category>
    </item>
    <item>
      <title>Terraform and the Lock-In You Actually Got</title>
      <dc:creator>Jon Holman</dc:creator>
      <pubDate>Tue, 01 Sep 2026 20:22:02 +0000</pubDate>
      <link>https://dev.to/jonholman_/terraform-and-the-lock-in-you-actually-got-1im</link>
      <guid>https://dev.to/jonholman_/terraform-and-the-lock-in-you-actually-got-1im</guid>
      <description>&lt;p&gt;I adopted Terraform because I was told it was an answer to cloud lock-in.&lt;/p&gt;

&lt;p&gt;The argument was easy to understand. Entire businesses were being built on AWS. Terraform offered one language above the providers, so infrastructure would no longer belong entirely to one of them. If circumstances changed, we would still have options.&lt;/p&gt;

&lt;p&gt;That is the pitch I heard. It is also important to say what the historical record does and does not support. HashiCorp announced Terraform in &lt;a href="https://www.hashicorp.com/en/blog/terraform-announcement" rel="noopener noreferrer"&gt;July 2014&lt;/a&gt; as a way to manage infrastructure spanning multiple providers. Its &lt;a href="https://github.com/hashicorp/terraform/blob/v0.1.0/website/source/intro/vs/cloudformation.html.markdown" rel="noopener noreferrer"&gt;launch-era documentation called the product cloud agnostic&lt;/a&gt; and emphasized combining multiple providers and services. But HashiCorp generally did not promise that an AWS resource definition could be moved unchanged to Azure. Its own technical explanation is explicit: Terraform intentionally does not abstract similar services across vendors because the result would tend toward a &lt;a href="https://developer.hashicorp.com/terraform/language/modules/develop/composition" rel="noopener noreferrer"&gt;lowest-common-denominator interface&lt;/a&gt;. HashiCorp later distinguished workload portability from the thing Terraform could actually provide: &lt;a href="https://www.hashicorp.com/en/resources/the-many-definitions-of-multi-cloud-and-their-implications" rel="noopener noreferrer"&gt;workflow portability&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So this is not an accusation that Terraform failed to implement its documented architecture. The architecture works as designed. It is an argument about the stronger portability story I understood when I adopted it, and about the dependency I accepted in return.&lt;/p&gt;

&lt;h2&gt;
  
  
  The resource definitions were never portable
&lt;/h2&gt;

&lt;p&gt;Terraform gives users a common language across providers, not a common resource model. You do not declare a generic virtual machine. You declare an &lt;code&gt;aws_instance&lt;/code&gt;, with an AMI, an AWS instance type, an AWS subnet, and AWS lifecycle behavior. An Azure virtual machine is a different resource with different arguments, network objects, identity semantics, disks, and images.&lt;/p&gt;

&lt;p&gt;There is no switch that points the first resource at the second provider. Moving it means replacing the resource and redesigning the infrastructure around it.&lt;/p&gt;

&lt;p&gt;This is not a missing feature. It is the honest consequence of the problem. Clouds compete through the services and semantics that distinguish them. An abstraction can preserve a portable common subset, but every vendor-specific capability it exposes narrows that portability; erase enough differences and users are left with the intersection of the platforms’ capabilities. Terraform chose the useful tradeoff: a consistent workflow over provider-defined schemas.&lt;/p&gt;

&lt;p&gt;Teams can build narrower abstractions in modules. A company can define its own opinionated “service” interface and implement it differently on two clouds. That can reduce migration work within the boundary the company controls. It does not turn the underlying provider resources into substitutes, and it does not translate the identity, network, managed-service, and failure semantics surrounding them. A substantial cloud migration remains a redesign. Terraform can organize that work; it cannot make it disappear.&lt;/p&gt;

&lt;h2&gt;
  
  
  A second layer of dependency
&lt;/h2&gt;

&lt;p&gt;Terraform did not remove cloud lock-in. It put an additional toolchain switching cost beside it.&lt;/p&gt;

&lt;p&gt;The first part is state. Terraform needs a snapshot that binds configuration addresses to remote objects and caches resource attributes. The &lt;a href="https://developer.hashicorp.com/terraform/language/state" rel="noopener noreferrer"&gt;raw file is an internal JSON format&lt;/a&gt;, not a secret proprietary encoding, and &lt;a href="https://opentofu.org/docs/intro/migration/multiple-configurations/#what-opentofu-guarantees" rel="noopener noreferrer"&gt;OpenTofu can read Terraform 1.x state&lt;/a&gt;. But it is still a tool-controlled operational artifact. Lose those bindings and Terraform can lose track of live resources. Corrupt them and recovery may mean imports or careful state repair against a running system.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacks.html" rel="noopener noreferrer"&gt;CloudFormation&lt;/a&gt; represents resources as an AWS-managed stack. &lt;a href="https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/overview" rel="noopener noreferrer"&gt;Azure Resource Manager&lt;/a&gt; reconciles deployments against live Azure resources and records deployment history without requiring a separate state file. In both cases, the provider keeps the bookkeeping inside its control plane. With self-managed Terraform, the team must design state storage, locking, access, partitioning, migration, and recovery.&lt;/p&gt;

&lt;p&gt;Then come the providers and modules. An estate accumulates provider binaries, version constraints, module interfaces, registry dependencies, and house conventions. Terraform supports &lt;a href="https://developer.hashicorp.com/terraform/cli/plugins" rel="noopener noreferrer"&gt;alternate registry hosts and provider mirrors&lt;/a&gt;, so its public registry is not an unavoidable single distribution channel. The switching cost is broader: years of infrastructure have been expressed through provider-defined resource types and schemas and Terraform’s module model.&lt;/p&gt;

&lt;p&gt;The deepest dependency may be the workflow. Teams build review gates, CI systems, operating procedures, and staff fluency around &lt;code&gt;plan&lt;/code&gt; and &lt;code&gt;apply&lt;/code&gt;. HashiCorp then built a &lt;a href="https://developer.hashicorp.com/terraform/cloud-docs" rel="noopener noreferrer"&gt;commercial layer&lt;/a&gt; around that workflow: remote state, managed runs, access controls, policy, audit, and collaboration in HCP Terraform and Terraform Enterprise.&lt;/p&gt;

&lt;p&gt;None of this makes Terraform bad. Useful standards create switching costs because people organize around them. But it does mean the tool became another vendor relationship whose governance mattered.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the governance risk became visible
&lt;/h2&gt;

&lt;p&gt;On &lt;a href="https://www.hashicorp.com/en/blog/hashicorp-adopts-business-source-license" rel="noopener noreferrer"&gt;10 August 2023&lt;/a&gt;, HashiCorp announced that future Terraform releases would move from MPL 2.0 to the Business Source License 1.1. Existing MPL releases &lt;a href="https://github.com/hashicorp/terraform/blob/v1.5.7/LICENSE" rel="noopener noreferrer"&gt;remained MPL&lt;/a&gt;. The first stable BSL release was &lt;a href="https://github.com/hashicorp/terraform/releases/tag/v1.6.0" rel="noopener noreferrer"&gt;Terraform 1.6.0 on 4 October 2023&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The practical effect on most internal users was small. HashiCorp’s &lt;a href="https://www.hashicorp.com/en/blog/hashicorp-updates-licensing-faq-based-on-community-questions" rel="noopener noreferrer"&gt;additional-use terms&lt;/a&gt; continued to permit internal production use and consulting. The restriction chiefly affected vendors hosting or embedding Terraform in an offering that competed with HashiCorp’s products. The same FAQ says providers, APIs, SDKs, and most related libraries remained MPL. This was not a moment when ordinary teams suddenly had to pay to keep running Terraform.&lt;/p&gt;

&lt;p&gt;It was still a governance event. A tool embedded in build pipelines across the industry would no longer publish new versions immediately under an open-source licence. Under the BSL, each version converts to MPL 2.0 &lt;a href="https://github.com/hashicorp/terraform/blob/v1.6.0/LICENSE" rel="noopener noreferrer"&gt;four years after its publication&lt;/a&gt;, so current releases sit on a rolling four-year source-available delay.&lt;/p&gt;

&lt;p&gt;The response was unusually fast. The OpenTF manifesto appeared on &lt;a href="https://opentofu.org/blog/opentofu-release-candidate-is-out/" rel="noopener noreferrer"&gt;15 August 2023&lt;/a&gt;. A fork was announced on &lt;a href="https://github.com/opentofu/manifesto/blob/main/announcement.html" rel="noopener noreferrer"&gt;25 August&lt;/a&gt;, and its repository became public on &lt;a href="https://opentofu.org/blog/the-opentofu-fork-is-now-available/" rel="noopener noreferrer"&gt;5 September&lt;/a&gt;, when the project reported more than 33,000 manifesto stars. On &lt;a href="https://www.linuxfoundation.org/press/announcing-opentofu" rel="noopener noreferrer"&gt;20 September&lt;/a&gt;, it joined the Linux Foundation as OpenTofu. Its first stable release, OpenTofu 1.6.0, reached general availability on &lt;a href="https://opentofu.org/blog/opentofu-is-going-ga/" rel="noopener noreferrer"&gt;10 January 2024&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;IBM announced its planned HashiCorp acquisition on &lt;a href="https://newsroom.ibm.com/2024-04-24-IBM-to-Acquire-HashiCorp-Inc-Creating-a-Comprehensive-End-to-End-Hybrid-Cloud-Platform" rel="noopener noreferrer"&gt;24 April 2024&lt;/a&gt; and completed it on &lt;a href="https://newsroom.ibm.com/2025-02-27-ibm-completes-acquisition-of-hashicorp%2C-creates-comprehensive%2C-end-to-end-hybrid-cloud-platform" rel="noopener noreferrer"&gt;27 February 2025&lt;/a&gt;, at an enterprise value of $6.4 billion. The acquisition did not cause the licence change; it was announced more than eight months later. Its relevance is simpler: ownership of a load-bearing tool can change, just as its licence can.&lt;/p&gt;

&lt;p&gt;OpenTofu materially reduces that governance risk. It is an &lt;a href="https://github.com/opentofu/opentofu/blob/main/LICENSE" rel="noopener noreferrer"&gt;MPL 2.0-licensed&lt;/a&gt; implementation under Linux Foundation governance, with a separate registry. It deliberately preserves Terraform’s state, provider, and workflow architecture, so it does not make cloud resources portable. But its compatibility provides an alternate engine and distribution path. That is a real reduction in single-vendor dependence, and it is evidence against overstating Terraform’s lock-in as total.&lt;/p&gt;

&lt;h2&gt;
  
  
  The value Terraform earned
&lt;/h2&gt;

&lt;p&gt;The provider ecosystem that justifies Terraform today is much stronger than the one available at launch. Terraform v0.1 shipped with &lt;a href="https://github.com/hashicorp/terraform/tree/v0.1.0/builtin/providers" rel="noopener noreferrer"&gt;six built-in providers&lt;/a&gt;: AWS, Cloudflare, Consul, DigitalOcean, DNSimple, and Heroku. &lt;a href="https://www.hashicorp.com/en/resources/enabling-multi-cloud-with-hashicorp-terraform" rel="noopener noreferrer"&gt;By 2018, HashiCorp described more than 100&lt;/a&gt;. It later counted &lt;a href="https://www.hashicorp.com/en/resources/enabling-a-cloud-operating-model-at-the-infrastructure-layer" rel="noopener noreferrer"&gt;more than 3,000 providers&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;That breadth changed the practical case for the tool. The estates I have worked in did not end at their cloud boundaries. There was DNS, source control, identity, monitoring, incident response, data platforms, and a long list of SaaS control planes. Terraform can put changes to all of them through a common configuration language and review process. That is the real agnosticism. The operating model is portable even when the resources are not.&lt;/p&gt;

&lt;p&gt;Terraform also helped make infrastructure-as-code mainstream beyond any one cloud. Its best idea is &lt;a href="https://developer.hashicorp.com/terraform/cli/commands/plan" rel="noopener noreferrer"&gt;&lt;code&gt;plan&lt;/code&gt;&lt;/a&gt;: a reviewable preview of proposed production changes before they are applied. A plan is not a guarantee; speculative plans can become stale. But the expectation that infrastructure changes should be previewed, reviewed, and logged was a major improvement in engineering practice.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.hashicorp.com/terraform/language/syntax/configuration" rel="noopener noreferrer"&gt;HCL was designed to be read and written by humans&lt;/a&gt;, and in my experience it works well in mixed-skill organizations. Modules provide a useful reuse mechanism. Terraform skills transfer between employers even when the resource code does not. Those are substantial benefits, and they explain why the workflow became difficult to replace.&lt;/p&gt;

&lt;h2&gt;
  
  
  The operational bill
&lt;/h2&gt;

&lt;p&gt;The same architecture imposes costs. State is not merely a file to put in object storage. It needs encryption, locking, access control, backups, sensible blast-radius boundaries, and tested recovery. Large monolithic states can slow operations and let one bad change reach too far. Splitting them well is architecture work.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.hashicorp.com/terraform/language/manage-sensitive-data" rel="noopener noreferrer"&gt;State and saved plan files can contain sensitive resource attributes in plaintext&lt;/a&gt;. Marking a value &lt;code&gt;sensitive&lt;/code&gt; redacts its display; it does not remove it from state. Remote backends can encrypt the artifact at rest, and newer ephemeral and write-only features can omit supported values, but plans, state, and backups still require deliberate handling. In a regulated environment, an unencrypted or broadly accessible state store containing secrets can become a control finding.&lt;/p&gt;

&lt;p&gt;Some incidental complexity has improved. &lt;a href="https://github.com/hashicorp/terraform/releases/tag/v1.10.0" rel="noopener noreferrer"&gt;Terraform 1.10&lt;/a&gt; introduced opt-in native S3 locking through &lt;code&gt;use_lockfile&lt;/code&gt;, implemented with an &lt;a href="https://github.com/hashicorp/terraform/blob/v1.10.0/internal/backend/remote-state/s3/client.go" rel="noopener noreferrer"&gt;S3 conditional write&lt;/a&gt;. &lt;a href="https://github.com/hashicorp/terraform/releases/tag/v1.11.0" rel="noopener noreferrer"&gt;Terraform 1.11&lt;/a&gt; made it generally available and deprecated the DynamoDB lock-table arguments. That removed an extra moving part for teams that migrated to the new mechanism.&lt;/p&gt;

&lt;p&gt;HCL’s simplicity also has a limit. The language accumulated conditionals, comprehensions, &lt;code&gt;for_each&lt;/code&gt;, dynamic blocks, and error-handling expressions. Each feature is reasonable. Together they can produce code that wants the structure and testability of a general-purpose language without actually being one. HashiCorp itself warns that overusing &lt;a href="https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks" rel="noopener noreferrer"&gt;dynamic blocks&lt;/a&gt; and &lt;a href="https://developer.hashicorp.com/terraform/language/functions/try" rel="noopener noreferrer"&gt;&lt;code&gt;try&lt;/code&gt;&lt;/a&gt; makes configurations difficult to read.&lt;/p&gt;

&lt;p&gt;Terraform can &lt;a href="https://developer.hashicorp.com/terraform/tutorials/state/resource-drift" rel="noopener noreferrer"&gt;detect drift&lt;/a&gt;, but it cannot prevent an authorized person or system from changing infrastructure outside the pipeline. Prevention belongs to IAM, policy, and process. Similarly, &lt;code&gt;-target&lt;/code&gt; and manual state commands are valid recovery tools, but &lt;a href="https://developer.hashicorp.com/terraform/tutorials/state/resource-targeting" rel="noopener noreferrer"&gt;Terraform documents targeting as exceptional&lt;/a&gt;. If they become routine, the design or workflow is telling you something.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vendor risk belongs in the build path
&lt;/h2&gt;

&lt;p&gt;Terraform is one of several build-tool dependencies whose terms changed after they became load-bearing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.serverless.com/framework/docs/guides/upgrading-v4" rel="noopener noreferrer"&gt;Serverless Framework v4&lt;/a&gt; introduced authentication and paid licensing for organizations above $2 million in annual revenue, while remaining free for individuals and smaller organizations. The open-source v3 line remained available but became unmaintained. I was part of the decision to leave and migrated that program to AWS SAM.&lt;/p&gt;

&lt;p&gt;Docker Desktop followed the same pattern earlier. On &lt;a href="https://www.docker.com/press-release/docker-updates-product-subscriptions/" rel="noopener noreferrer"&gt;31 August 2021&lt;/a&gt;, Docker changed its subscription terms. Desktop remained free for personal use, education, non-commercial open-source work, and small businesses with fewer than 250 employees and less than $10 million in annual revenue; professional use in larger organizations required a paid subscription after a five-month grace period. Docker was explicit that the change &lt;a href="https://docs.docker.com/subscription/desktop-license/#open-source-components" rel="noopener noreferrer"&gt;did not alter the licensing of Docker Engine or the Moby open-source projects&lt;/a&gt;. We replaced Docker Desktop on our Macs with &lt;a href="https://github.com/abiosoft/colima" rel="noopener noreferrer"&gt;Colima&lt;/a&gt;, which supplied the Linux container runtime while preserving the Docker command-line workflow.&lt;/p&gt;

&lt;p&gt;LocalStack took a different path. It ended support and regular updates for its legacy Community image on &lt;a href="https://blog.localstack.cloud/2026-upcoming-pricing-changes/" rel="noopener noreferrer"&gt;23 March 2026&lt;/a&gt;. The maintained distribution requires an account and authentication token; its &lt;a href="https://www.localstack.cloud/pricing" rel="noopener noreferrer"&gt;permanent Hobby tier&lt;/a&gt; is free for non-commercial use, while commercial use requires a paid plan. Its updates have a history of breaking working setups. I built a working replacement, but adopting it would have traded one concentration risk for another, a single maintainer, so I validated external alternatives and left two that passed every test.&lt;/p&gt;

&lt;p&gt;Then &lt;a href="https://www.hashicorp.com/en/blog/hashicorp-adopts-business-source-license" rel="noopener noreferrer"&gt;Terraform changed the licence governing future releases&lt;/a&gt;, and HashiCorp was acquired.&lt;/p&gt;

&lt;p&gt;Eventually, many of the great developer tools of the previous decade reached the same point: their makers had to make money. That was reasonable. The mistake was treating free access and permissive terms as permanent properties of the architecture. These examples show several ways a free tool can become load-bearing before its maintenance or commercial terms change. Build tools often enter with less vendor-risk scrutiny than purchased platforms even though the eventual dependency can be just as deep.&lt;/p&gt;

&lt;p&gt;The engineering response is not cynicism. It is placement. Ask what happens if a tool is no longer free, open, or maintained in three years. Prefer documented interfaces and tested exits. Prove that configuration and state can move to the intended alternative before adopting incompatible features. Account for the risk that an internal replacement merely exchanges vendor concentration for maintainer concentration.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would choose now
&lt;/h2&gt;

&lt;p&gt;I would choose Terraform for the honest reason: a broad estate can benefit from one reviewed workflow across many control planes. If the estate is genuinely AWS-only, CloudFormation and AWS CDK deserve a serious hearing. AWS CDK offers general-purpose-language abstractions and testing while remaining explicitly AWS-specific.&lt;/p&gt;

&lt;p&gt;I would consider OpenTofu when licence and governance risk are live concerns. I would not migrate a working estate merely to protest HashiCorp’s licence change; migration cost is real, and most internal users can still use Terraform as before.&lt;/p&gt;

&lt;p&gt;I would not choose Terraform, CloudFormation, or CDK expecting provider-neutral resource portability. I would design for one production path, split state by blast radius, minimize secrets in state, and secure every state or plan artifact that must contain them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The objections
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;“HashiCorp never promised drop-in multi-cloud portability.”&lt;/strong&gt; Correct. Its own technical materials generally promised multi-provider workflow portability. My argument is about the stronger pitch I encountered, reinforced by launch-era &lt;a href="https://github.com/hashicorp/terraform/blob/v0.1.0/website/source/intro/vs/cloudformation.html.markdown" rel="noopener noreferrer"&gt;“cloud agnostic”&lt;/a&gt; language and the later promise to &lt;a href="https://www.hashicorp.com/en/products/terraform" rel="noopener noreferrer"&gt;“onboard any cloud” through one workflow “without vendor lock-in”&lt;/a&gt;. The distinction should have been clearer in my decision; it should be explicit in anyone’s decision now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Terraform is multi-cloud.”&lt;/strong&gt; It is. It can manage multiple clouds through one workflow. That is different from making resources portable between them, and the former is valuable without pretending it delivers the latter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Every abstraction has limits.”&lt;/strong&gt; Yes. Terraform Core’s particular choice was not to provide a common cloud-resource abstraction at all. Teams can build bounded module interfaces, but provider-specific implementations remain underneath them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“The BSL change barely affected end users.”&lt;/strong&gt; &lt;a href="https://www.hashicorp.com/en/blog/hashicorp-updates-licensing-faq-based-on-community-questions" rel="noopener noreferrer"&gt;Mostly true&lt;/a&gt;. The immediate practical effect fell on vendors hosting or embedding Terraform in competing products, and on the ecosystem around them. Its importance here is as a governance event, not a claim that ordinary users lost access to Terraform.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“OpenTofu solved it.”&lt;/strong&gt; It solved a meaningful part of it. An open fork under Linux Foundation governance reduces dependence on HashiCorp’s engine, licence, and registry. It preserves the architecture, so state, providers, modules, and workflow remain, but engine-level substitutability is much better than having none.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“This is hindsight.”&lt;/strong&gt; Partly. Provider-specific resource types made the limitation visible from the beginning. I did not interrogate the portability premise when I adopted Terraform because a cloud exit was not the work in front of me. That is precisely why the lesson applies beyond Terraform: a dependency’s exit path is easiest to ignore before the dependency becomes important.&lt;/p&gt;

&lt;p&gt;Terraform is good software. The resource portability argument that drove my adoption was not true, but the tool earned its place through a different value: consistent infrastructure practice across an increasingly broad estate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://martinfowler.com/articles/oss-lockin.html" rel="noopener noreferrer"&gt;Gregor Hohpe argued in 2019&lt;/a&gt; that trying too hard to avoid lock-in can itself become a trap. The further lesson I take from Terraform is that vendor risk belongs in the build path as well as the production platform.&lt;/p&gt;

&lt;p&gt;Lock-in is not something you eliminate. It is a set of switching costs you place deliberately. The useful question is not whether you have any, but whether you chose where they sit and tested an exit.&lt;/p&gt;

</description>
      <category>terraform</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Console-to-Code Preview: Test Drive, Bright Future</title>
      <dc:creator>Jon Holman</dc:creator>
      <pubDate>Wed, 13 Dec 2023 17:03:42 +0000</pubDate>
      <link>https://dev.to/aws-builders/console-to-code-preview-test-drive-bright-future-1j4l</link>
      <guid>https://dev.to/aws-builders/console-to-code-preview-test-drive-bright-future-1j4l</guid>
      <description>&lt;p&gt;Every November brings excitement to the tech world with the Amazon Web Services (AWS) re:Invent conference. This year, the focus was on Generative AI (GenAI). Among the many GenAI releases was a new EC2 console feature called "&lt;a href="https://aws.amazon.com/about-aws/whats-new/2023/11/aws-console-to-code-preview-generate-console-actions/" rel="noopener noreferrer"&gt;Console-to-Code&lt;/a&gt;." This tool transforms console actions into code. I love this idea. Using this tool, newcomers can more easily adopt the best practice of using Infrastructure as Code (IaC). This tool can even help seasoned IaC professionals create new templates while adding rarely used resource types. Let's take this new feature for a test drive.&lt;/p&gt;

&lt;p&gt;First, let's create a spot instance and get a CloudFormation template. Hmm, it did not recognize the console action of creating a new spot instance. Oh well. Let's create an on-demand instance. It did see those actions and generated the following CloudFormation YAML:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Resources:
  EC2Instance: 
    Type: AWS::EC2::Instance
    Properties:
      ImageId: ami-0230bd60aa48260c6
      InstanceType: t2.micro
      KeyName: mine
      BlockDeviceMappings: 
        - DeviceName: /dev/xvda
          Ebs:
            Encrypted: true
            DeleteOnTermination: true
            Iops: 3000
            KmsKeyId: arn:aws:kms:us-east-1:XXXXXXXXXXXX:key/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
            SnapshotId: snap-xxxxxxxxxxxxxxxxx
            VolumeSize: 8
            VolumeType: gp3
            Throughput: 125
      NetworkInterfaces:
        - AssociatePublicIpAddress: true
          DeviceIndex: 0
          GroupSet: 
            - sg-xxxxxxxxxxxxxxxxx
      TagSpecifications:
        - ResourceType: instance
          Tags:
            - Key: Name
              Value: My Test
      MetadataOptions:
        HttpTokens: required
        HttpEndpoint: enabled
        HttpPutResponseHopLimit: 2
      PrivateDnsNameOptions:
        HostnameType: ip-name
        EnableResourceNameDnsARecord: true
        EnableResourceNameDnsAAAARecord: false
      ClientToken: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
      Count: 1

  SecurityGroupIngress:
    Type: AWS::EC2::SecurityGroupIngress
    Properties:
      GroupId: sg-xxxxxxxxxxxxxxxxx
      IpProtocol: tcp
      FromPort: 22
      ToPort: 22
      CidrIp: 0.0.0.0/0

  SecurityGroup:
    Type: AWS::EC2::SecurityGroup  
    Properties:
      GroupName: launch-wizard-1
      GroupDescription: launch-wizard-1 created 2023-12-11T17:23:59.534Z
      VpcId: vpc-xxxxxxxxxxxxxxxxx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's save that as a YAML file and try to create an identical EC2 instance using the CloudFormation console. That attempt failed with the following:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqca1tiqd6z4j4seoigmn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqca1tiqd6z4j4seoigmn.png" alt=" " width="796" height="49"&gt;&lt;/a&gt;&lt;br&gt;
I see the problem. "TagSpecifications:" and "- ResourceType: instance" are invalid properties. Remove those two lines and two indention levels for the "Tags:" block. Now, let's try again. Now, the CloudFormation creation failed with the following:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi5nej5xaycr251zofwf9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi5nej5xaycr251zofwf9.png" alt=" " width="798" height="54"&gt;&lt;/a&gt;&lt;br&gt;
Let's remove the "MetadataOptions" property and the keys within and try again. Next, the CloudFormation stack creation failed with the following:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftrmk197j00sk55g2vyg1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftrmk197j00sk55g2vyg1.png" alt=" " width="800" height="30"&gt;&lt;/a&gt;&lt;br&gt;
This one is minor, since a real deployment would use a descriptive security group name. Let's try again. This time, it failed with the following:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl267153y306mhwkhus8x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl267153y306mhwkhus8x.png" alt=" " width="797" height="52"&gt;&lt;/a&gt;&lt;br&gt;
"Count: 1." Where did that come from? Terraform? Remove that line and try again. Next, it failed with the following:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe648pge3jb0eijr4it8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe648pge3jb0eijr4it8y.png" alt=" " width="795" height="48"&gt;&lt;/a&gt;&lt;br&gt;
Remove the "ClientToken:" line and try again. Now, it failed with the following:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdraa2rlwxl80jogpgsek.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdraa2rlwxl80jogpgsek.png" alt=" " width="797" height="52"&gt;&lt;/a&gt;&lt;br&gt;
Remove the "Throughput:" line and try again. It worked!&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbrr6ztuqiogmjq1dasn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbrr6ztuqiogmjq1dasn.png" alt=" " width="158" height="53"&gt;&lt;/a&gt;&lt;br&gt;
I thought creating an EC2 instance with all default settings except my key pair would be a simple test of this new feature. However, after needing to fix the provided template over six iterations to deploy successfully, I would treat this preview as a helpful starting point rather than a finished template. It is fun to play with. I understand this feature is still in preview, but what can this current version successfully do? The current version is limited in scope to the EC2 console. In the EC2 console, what is more fundamental than creating an EC2 instance?&lt;/p&gt;

&lt;p&gt;In conclusion, I love the idea of this new feature, and I greatly look forward to it being improved and expanded to other AWS services. This feature will help more customers achieve the best practice of using IaC. I cannot wait for an announcement of improvements to this service so I can take it for another test drive.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>aws</category>
      <category>amazon</category>
      <category>ai</category>
      <category>infrastructureascode</category>
    </item>
    <item>
      <title>My First Impressions of Amazon Q</title>
      <dc:creator>Jon Holman</dc:creator>
      <pubDate>Wed, 29 Nov 2023 18:54:58 +0000</pubDate>
      <link>https://dev.to/aws-builders/my-first-impressions-of-amazon-q-263m</link>
      <guid>https://dev.to/aws-builders/my-first-impressions-of-amazon-q-263m</guid>
      <description>&lt;p&gt;Every year in late November, Amazon Web Services (AWS) hosts its re:Invent conference.  This conference introduces many new services and features.  This year has been no exception.  This year is heavily focused on Generative AI (GenAI).  Yesterday, they announced a new service called Amazon Q, a generative AI assistant.  After this announcement, when you log into the web console of your AWS account, you are greeted with a screen similar to the following:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff42bmijqaddceq0odvvs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff42bmijqaddceq0odvvs.png" alt=" " width="800" height="507"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm excited about this idea; I see its potential to help many users, myself included, get stuff done.  Let's try it out.  Hmm, what to try.  How about?&lt;/p&gt;

&lt;p&gt;"Please provide me a list of my S3 buckets."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe7s1j8zb37vxpkykj5fe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe7s1j8zb37vxpkykj5fe.png" alt=" " width="800" height="952"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's not bad.  It would be cool if it gave me my list of buckets or a link to that part of the console.  It also could have suggested running the provided command in CloudShell.  But still, not bad.&lt;/p&gt;

&lt;p&gt;Next, let's try "Create a website." intentionally keeping this generic to see where it goes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnwdnt3hefc5nheyfgjff.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnwdnt3hefc5nheyfgjff.png" alt=" " width="800" height="588"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It kept the answer brief.  Let's give it more to work with, "How can I create a website?"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgzmvekhx70p3inn11kvv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgzmvekhx70p3inn11kvv.png" alt=" " width="574" height="1082"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm happy with that answer.&lt;/p&gt;

&lt;p&gt;Let's see if it will write CloudFormation for us, "Please write me CloudFormation to create a CloudFront distribution."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9qrx2dsfeico1mn94vea.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9qrx2dsfeico1mn94vea.png" alt=" " width="446" height="1068"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This new service is in preview, and I expect this functionality to grow.  Last, let's try asking a question unrelated to AWS, "What are the latest headlines in world news?"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkeijruscmb8ur6377nb5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkeijruscmb8ur6377nb5.png" alt=" " width="800" height="592"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That answer makes sense to me.&lt;/p&gt;

&lt;p&gt;I like this new service introduction.  I see a lot of potential for it, and it's in preview, so it is understood that it will not be perfect.  I look forward to Amazon continued development of this service.  Some hopes I have to see in the future:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Help users find what they're looking for, for example links to specific places in the AWS web console.&lt;/li&gt;
&lt;li&gt;Educate users and encourage best practices&lt;/li&gt;
&lt;li&gt;Generate IaC (Infrastructure-as-Code)&lt;/li&gt;
&lt;li&gt;Provide answers related to the current AWS account.  For example, "Please list my S3 buckets." or "Please list all of my running EC2 instances."&lt;/li&gt;
&lt;li&gt;Identify cost optimization opportunities across your AWS account.&lt;/li&gt;
&lt;li&gt;Define settings for the type of solutions you create based on regulations, corporate policies, and/or preferences.  For example, "We are an EKS shop." or "All external traffic must be routed through our corporate data center via our direct connect."  Amazon Q should then make recommendations that adhere to those preferences.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What are your thoughts?  Let me know in the comments below.&lt;/p&gt;

&lt;p&gt;Thanks for reading.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>amazon</category>
      <category>ai</category>
      <category>aiops</category>
    </item>
    <item>
      <title>Streamline CloudFormation Custom Resource Development with a Wrapper Lambda Function</title>
      <dc:creator>Jon Holman</dc:creator>
      <pubDate>Fri, 31 Mar 2023 02:31:09 +0000</pubDate>
      <link>https://dev.to/aws-builders/streamline-cloudformation-custom-resource-development-with-a-wrapper-lambda-function-26k9</link>
      <guid>https://dev.to/aws-builders/streamline-cloudformation-custom-resource-development-with-a-wrapper-lambda-function-26k9</guid>
      <description>&lt;p&gt;AWS CloudFormation and AWS Lambda are powerful tools available to all AWS customers. AWS CloudFormation enables you to define and manage your AWS infrastructure using code, while AWS Lambda allows you to run code in response to events without managing backend infrastructure. A powerful feature is CloudFormation Custom Resources, which enables you to implement a Lambda function triggered by a CloudFormation template. A CloudFormation template can achieve more possibilities by utilizing this feature.&lt;/p&gt;

&lt;p&gt;Errors during the development of custom resources can result in unresponsive stacks and delays in the development process. This blog post explores how a wrapper Lambda function can enhance your CloudFormation custom resource development experience, preventing unresponsive stacks and boosting overall productivity. The AWS provided cfn-response module assists in sending responses from your Lambda function, which serves as a CloudFormation Custom Resource, back to CloudFormation. Unresponsive stacks typically arise from coding mistakes, such as typos or incorrect permissions, which hinder CloudFormation from receiving the necessary response from the Lambda function. When a stack becomes unresponsive, it disrupts the development process. A common workaround to an unresponsive stack is selecting a new stack name and continuing development while remembering to clean up the unresponsive stack after its one-hour timeout period expires.&lt;/p&gt;

&lt;p&gt;Before we get further into our solution, let's demonstrate how easy it is to create an unresponsive stack accidentally. In this demo, we will create an AWS Lambda function that will try to list all DynamoDB tables in the account without being given permission. Another common cause is a simple typo in the code. You may want to avoid following along in your AWS account because this will create an unresponsive stack, so only perform this yourself if you're ready to deal with the unresponsive stack afterward.&lt;/p&gt;

&lt;p&gt;Example in JavaScript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;AWSTemplateFormatVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2010-09-09"&lt;/span&gt;
&lt;span class="na"&gt;Resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;LambdaFunction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AWS::Lambda::Function&lt;/span&gt;
    &lt;span class="na"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;Code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;ZipFile&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;const { DynamoDBClient, ListTablesCommand } = require("@aws-sdk/client-dynamodb");&lt;/span&gt;
          &lt;span class="s"&gt;const cfnresponse = require("cfn-response");&lt;/span&gt;

          &lt;span class="s"&gt;const asyncCfnResponseSend = (event, context, responseStatus, responseData, physicalResourceId, noEcho) =&amp;gt; {&lt;/span&gt;
            &lt;span class="s"&gt;return new Promise((resolve, reject) =&amp;gt; {&lt;/span&gt;
              &lt;span class="s"&gt;cfnresponse.send(event, context, responseStatus, responseData, physicalResourceId, noEcho, (err, res) =&amp;gt; {&lt;/span&gt;
                &lt;span class="s"&gt;if (err) {&lt;/span&gt;
                  &lt;span class="s"&gt;reject(err);&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="s"&gt;else {&lt;/span&gt;
                  &lt;span class="s"&gt;resolve(res);&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s"&gt;);&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s"&gt;);&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s"&gt;;&lt;/span&gt;

          &lt;span class="s"&gt;exports.handler = async (event, context) =&amp;gt; {&lt;/span&gt;
            &lt;span class="s"&gt;const client = new DynamoDBClient();&lt;/span&gt;
            &lt;span class="s"&gt;const response = await client.send(new ListTablesCommand({}));&lt;/span&gt;
            &lt;span class="s"&gt;await asyncCfnResponseSend(event, context, cfnresponse.SUCCESS, response);&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s"&gt;;&lt;/span&gt;

      &lt;span class="na"&gt;Handler&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;index.handler&lt;/span&gt;
      &lt;span class="na"&gt;Role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;!GetAtt&lt;/span&gt; &lt;span class="s"&gt;LambdaFunctionExecutionRole.Arn&lt;/span&gt;
      &lt;span class="na"&gt;Runtime&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;nodejs18.x&lt;/span&gt;
      &lt;span class="na"&gt;Timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;

  &lt;span class="na"&gt;LambdaFunctionExecutionRole&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AWS::IAM::Role&lt;/span&gt;
    &lt;span class="na"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;AssumeRolePolicyDocument&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;Version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;
        &lt;span class="na"&gt;Statement&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;Effect&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Allow&lt;/span&gt;
            &lt;span class="na"&gt;Principal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;Service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;lambda.amazonaws.com&lt;/span&gt;
            &lt;span class="na"&gt;Action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sts:AssumeRole&lt;/span&gt;
      &lt;span class="na"&gt;ManagedPolicyArns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole&lt;/span&gt;

  &lt;span class="na"&gt;TestInvocationOfCustomResource&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Custom::TestInvocation&lt;/span&gt;
    &lt;span class="na"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;ServiceToken&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;!GetAtt&lt;/span&gt; &lt;span class="s"&gt;LambdaFunction.Arn&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example in Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;AWSTemplateFormatVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2010-09-09"&lt;/span&gt;
&lt;span class="na"&gt;Resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;LambdaFunction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AWS::Lambda::Function&lt;/span&gt;
    &lt;span class="na"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;Code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;ZipFile&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;import boto3&lt;/span&gt;
          &lt;span class="s"&gt;import cfnresponse&lt;/span&gt;

          &lt;span class="na"&gt;def handler(event, context)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="s"&gt;client = boto3.client("dynamodb")&lt;/span&gt;
              &lt;span class="s"&gt;response = client.list_tables()&lt;/span&gt;
              &lt;span class="s"&gt;cfnresponse.send(event, context, cfnresponse.SUCCESS, response)&lt;/span&gt;

      &lt;span class="na"&gt;Handler&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;index.handler&lt;/span&gt;
      &lt;span class="na"&gt;Role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;!GetAtt&lt;/span&gt; &lt;span class="s"&gt;LambdaFunctionExecutionRole.Arn&lt;/span&gt;
      &lt;span class="na"&gt;Runtime&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;python3.9&lt;/span&gt;
      &lt;span class="na"&gt;Timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;

  &lt;span class="na"&gt;LambdaFunctionExecutionRole&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AWS::IAM::Role&lt;/span&gt;
    &lt;span class="na"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;AssumeRolePolicyDocument&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;Version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;
        &lt;span class="na"&gt;Statement&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;Effect&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Allow&lt;/span&gt;
            &lt;span class="na"&gt;Principal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;Service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;lambda.amazonaws.com&lt;/span&gt;
            &lt;span class="na"&gt;Action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sts:AssumeRole&lt;/span&gt;
      &lt;span class="na"&gt;ManagedPolicyArns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole&lt;/span&gt;

  &lt;span class="na"&gt;TestInvocationOfCustomResource&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Custom::TestInvocation&lt;/span&gt;
    &lt;span class="na"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;ServiceToken&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;!GetAtt&lt;/span&gt; &lt;span class="s"&gt;LambdaFunction.Arn&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A screenshot of an unresponsive stack:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9rn3lmdczktxl461pqa0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9rn3lmdczktxl461pqa0.png" alt=" " width="800" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you see, simply trying to perform an SDK action without proper permissions can create an unresponsive stack.  Of course that above can be avoided by wrapping the SDK action in a try/catch, sometimes when we're quickly developing we may forget that or we may make a typo.  It is detrimental to productivity when your process is interrupted by an unresponsive stack.  To avoid this problem, we can use a wrapper Lambda function to handle exceptions and ensure proper communication back to the CloudFormation service. Our wrapper Lambda function is a reliable approach to avoid creating an unresponsive CloudFormation stack due to quick mistakes during the development of custom resources. This wrapper function acts as a handler that invokes the Lambda being developed and communicates a response to CloudFormation, ensuring that errors are handled gracefully and presenting information of items that require attention for the developers to see. This approach streamlines the development process, making it more efficient and dependable. As a result, custom resources can be developed with confidence, knowing that communication with CloudFormation is reliable and error-free.&lt;/p&gt;

&lt;p&gt;To protect ourselves from our development process being interrupted by an unresponsive stack. Let's make some updates to our CloudFormation template. First, we will add a Lambda Function to the Resources block of your CloudFormation template.&lt;/p&gt;

&lt;p&gt;In JavaScript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;  &lt;span class="nc"&gt;WrappingLambdaFunction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nc"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;AWS&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Lambda&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nb"&gt;Function&lt;/span&gt;
    &lt;span class="nc"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="nc"&gt;Code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nc"&gt;ZipFile&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
          &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;LambdaClient&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;InvokeCommand&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"@aws-sdk/client-lambda"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"cfn-response"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;https&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

          &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;send&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;responseStatus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;responseData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;physicalResourceId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;noEcho&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;responseBody&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="nc"&gt;Status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;responseStatus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;Reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="sb"&gt;`See the details in CloudWatch Log Stream: ${context.logStreamName}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;PhysicalResourceId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;physicalResourceId&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;logStreamName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;StackId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;StackId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;RequestId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;RequestId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;LogicalResourceId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;LogicalResourceId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;NoEcho&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;noEcho&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;Data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;responseData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

                &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Response body:\n"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;responseBody&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

                &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;parsedUrl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ResponseURL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="n"&gt;hostname&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;parsedUrl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hostname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;parsedUrl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PUT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="s2"&gt;"content-type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="s2"&gt;"content-length"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;responseBody&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

                &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Status code: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;statusCode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Status message: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;statusMessage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                  &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

                &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"send(..) failed executing https.request(..): "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                  &lt;span class="nf"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

                &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;responseBody&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;end&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"send(..) failed: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="nf"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

          &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;invokeLambda&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;functionName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;LambdaClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;InvokeCommand&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="nc"&gt;FunctionName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;functionName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;Payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
              &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;decoder&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;TextDecoder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;payloadString&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;decoder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payloadString&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

              &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Lambda invocation failed: ${error.message}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;

          &lt;span class="n"&gt;exports&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"event:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;resourceProperties&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ResourceProperties&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;functionName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resourceProperties&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;LambdaFunctionName&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;functionName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Lambda invocation failed: LambdaFunctionName must be provided in event.ResourceProperties."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;errorMessage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FAILED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;invokeLambda&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;functionName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

                &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"lambda response:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hasOwnProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"errorMessage"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`Lambda invocation failed: ${payload.errorMessage}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FAILED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SUCCESS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Lambda invocation succeeded"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Lambda invocation succeeded"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`Lambda invocation failed: ${error.message}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;errorMessage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FAILED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errorMessage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
              &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="nc"&gt;Handler&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;
      &lt;span class="nc"&gt;Role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nc"&gt;GetAtt&lt;/span&gt; &lt;span class="nc"&gt;WrappingLambdaFunctionExecutionRole&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Arn&lt;/span&gt;
      &lt;span class="nc"&gt;Runtime&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;nodejs18&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;
      &lt;span class="nc"&gt;Timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;  &lt;span class="nc"&gt;WrappingLambdaFunction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nc"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;AWS&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Lambda&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Function&lt;/span&gt;
    &lt;span class="nc"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="nc"&gt;Code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nc"&gt;ZipFile&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
          &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
          &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;logging&lt;/span&gt;
          &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;boto3&lt;/span&gt;
          &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;

          &lt;span class="n"&gt;logger&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;logging&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getLogger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setLevel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;logging&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;INFO&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;boto3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"lambda"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

          &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;invoke_lambda&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;function_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                  &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;invoke&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                      &lt;span class="nc"&gt;FunctionName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;function_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                      &lt;span class="nc"&gt;Payload&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="p"&gt;)&lt;/span&gt;
                  &lt;span class="n"&gt;payload_stream&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Payload"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
                  &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload_stream&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                  &lt;span class="n"&gt;payload_stream&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

                  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;
              &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                  &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Lambda invocation failed: {error}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

          &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"event: {event}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

              &lt;span class="n"&gt;resource_properties&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ResourceProperties"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
              &lt;span class="n"&gt;function_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resource_properties&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"LambdaFunctionName"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

              &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;function_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                  &lt;span class="n"&gt;error_message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Lambda invocation failed: LambdaFunctionName must be provided in event.ResourceProperties."&lt;/span&gt;
                  &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error_message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                  &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FAILED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error_message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error_message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
              &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                  &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                      &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;invoke_lambda&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;function_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

                      &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"lambda response: {payload}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

                      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="s2"&gt;"errorMessage"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                          &lt;span class="n"&gt;error_message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Lambda invocation failed: {payload['errorMessage']}"&lt;/span&gt;
                          &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FAILED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error_message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error_message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                      &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                          &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SUCCESS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"Response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Lambda invocation succeeded"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Lambda invocation succeeded"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

                  &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                      &lt;span class="n"&gt;error_message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Lambda invocation failed: {error}"&lt;/span&gt;
                      &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error_message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                      &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cfnresponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FAILED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error_message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error_message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

      &lt;span class="nc"&gt;Handler&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;
      &lt;span class="nc"&gt;Role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nc"&gt;GetAtt&lt;/span&gt; &lt;span class="nc"&gt;WrappingLambdaFunctionExecutionRole&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Arn&lt;/span&gt;
      &lt;span class="nc"&gt;Runtime&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;python3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;
      &lt;span class="nc"&gt;Timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that we have added that additional lambda function, let's make some final edits to our CloudFormation template to utilize that wrapper lambda function.  This will be the same for Python and JavaScript.&lt;br&gt;
Add the role for that function we just added:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;  &lt;span class="na"&gt;WrappingLambdaFunctionExecutionRole&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AWS::IAM::Role&lt;/span&gt;
    &lt;span class="na"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;AssumeRolePolicyDocument&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;Version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;
        &lt;span class="na"&gt;Statement&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;Effect&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Allow&lt;/span&gt;
            &lt;span class="na"&gt;Principal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;Service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;lambda.amazonaws.com&lt;/span&gt;
            &lt;span class="na"&gt;Action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sts:AssumeRole&lt;/span&gt;
      &lt;span class="na"&gt;ManagedPolicyArns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole&lt;/span&gt;
      &lt;span class="na"&gt;Policies&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;PolicyName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;invoke-lambda-function&lt;/span&gt;
          &lt;span class="na"&gt;PolicyDocument&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;Version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;
            &lt;span class="na"&gt;Statement&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;Effect&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Allow&lt;/span&gt;
                &lt;span class="na"&gt;Action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;lambda:InvokeFunction&lt;/span&gt;
                &lt;span class="na"&gt;Resource&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;!GetAtt&lt;/span&gt; &lt;span class="s"&gt;LambdaFunction.Arn&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now from the original lambda function we created:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;the cfnresponse import can be removed.  In the JavaScript version the asyncCfnResponseSend function can be removed as well.&lt;/li&gt;
&lt;li&gt;the cfnresponse.send line can be replaced with &lt;code&gt;return response&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;In the TestInvocationOfCustomResource resource in the CloudFormation template the &lt;code&gt;ServiceToken: !GetAtt LambdaFunction.Arn&lt;/code&gt; line should be renamed to &lt;code&gt;LambdaFunctionName: !Ref LambdaFunction&lt;/code&gt;, then add a new line &lt;code&gt;ServiceToken: !GetAtt WrappingLambdaFunction.Arn&lt;/code&gt; that will update the CloudFormation template to call the wrapping function which will then call the function in development.&lt;/li&gt;
&lt;li&gt;You can also add an output, so we can demonstrate how return values can flow from our development lambda function back to CloudFormation, at the end of the template, add:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;Outputs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;ResponseFromLambdaFunction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;!GetAtt&lt;/span&gt; &lt;span class="s"&gt;TestInvocationOfCustomResource.Response&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that we have added our wrapping function and updated our template, let's deploy and take a look.  My results can be seen in this screenshot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9h5jwuwt2lordtetkxtx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9h5jwuwt2lordtetkxtx.png" alt=" " width="800" height="530"&gt;&lt;/a&gt;&lt;br&gt;
As we expected this function did not succeed, as it did not list all DynamoDB tables, because it does not have permissions.  However the stack is still responsive. Note the message in the Status reason column, we are also returning that same value to the Physical ID column on the Resources tab.  We are returning that value and trying to make it visible to the developer without causing the stack to wait for an hour prior to any further actions being performed.&lt;/p&gt;

&lt;p&gt;Side note, while writing this post, I discovered that I prefer cfn-response module's Python implementation over its JavaScript counterpart. Since python typically executes code in a single thread, we don't need to worry about cfn-response not being asynchronous.  The JavaScript version of cfn-response also lacks support for the reason parameter. To address these items in our examples above you will see the JavaScript examples required more code to remedy the lack of support for the reason property and cfn-response's send function not being asynchronous.&lt;/p&gt;

&lt;p&gt;If you would like to take this demo a step further, we can remediate the fictitious issue we created for demonstration by adding the appropriate permission to the inner (wrapped) Lambda function to list DynamoDB tables and deploy the template.  If you add the appropriate permission to the inner (wrapped) lambda function to list DynamoDB tables and re-create the template you will see how the data from that call is returned back to the wrapping function, which then in turn makes it available to the CloudFormation stack (as an example it is on the outputs tab of the CloudFormation console.)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;      &lt;span class="na"&gt;Policies&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;PolicyName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;temp&lt;/span&gt;
          &lt;span class="na"&gt;PolicyDocument&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;Version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;
            &lt;span class="na"&gt;Statement&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;Effect&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Allow&lt;/span&gt;
                &lt;span class="na"&gt;Action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dynamodb:ListTables&lt;/span&gt;
                &lt;span class="na"&gt;Resource&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"*"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In conclusion, a wrapper Lambda function can be a valuable tool for streamlining your CloudFormation custom resource development process and preventing unresponsive stacks. By incorporating them into your workflow, you can achieve a more efficient and reliable development experience.  Thanks for reading.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>devops</category>
      <category>serverless</category>
    </item>
    <item>
      <title>Securing a new AWS account - Starting with Trusted Advisor</title>
      <dc:creator>Jon Holman</dc:creator>
      <pubDate>Sat, 26 Nov 2022 02:38:31 +0000</pubDate>
      <link>https://dev.to/aws-builders/securing-a-new-aws-account-starting-with-trusted-advisor-2dhb</link>
      <guid>https://dev.to/aws-builders/securing-a-new-aws-account-starting-with-trusted-advisor-2dhb</guid>
      <description>&lt;p&gt;This blog post is the start of a new series of posts. In this series, I will create a brand new AWS account and then use several common tools to identify areas of vulnerability which we will then remediate. We will secure this account prior to the account being used to host any workloads. Everything we create in this account will be to follow recommendations for securing the account. After this series, the next step could be to spin up some sample workloads and see new guidance from the tools we use based on the resources those workloads create.&lt;/p&gt;

&lt;p&gt;Although it is best practice to always have a multi-account organization in AWS [1], this series will focus on a single AWS account for simplicity. I previously wrote about &lt;a href="https://www.softrams.com/post/aws-control-tower" rel="noopener noreferrer"&gt;AWS Control Tower&lt;/a&gt; for setting up and managing multiple accounts in an AWS organization. This post explores other options for that work. When you have an AWS organization with numerous accounts to manage, you have some additional tools at your disposal that greatly assist in achieving your goals. However, everyone starts their AWS journey with a single account. We need to know how to secure that single account before scaling it to many accounts. For additional tools available in an organization, I am referring to tools like an Organizational CloudTrail, Service Control Policies (SCPs), and IAM Identity Center (the AWS service formerly known as Single-Sign-On or SSO).&lt;/p&gt;

&lt;p&gt;The first tool we will start with is AWS’s Trusted Advisor. Let’s start with a brand-new account. I  created this account through the standard process any new customer will use and not through an account vending machine [2] process. To create the account, I went to &lt;a href="https://aws.amazon.com/" rel="noopener noreferrer"&gt;https://aws.amazon.com/&lt;/a&gt; and clicked “Create an AWS Account.” During sign-up, I chose the basic (free) support plan.&lt;/p&gt;

&lt;p&gt;After signing up for the new account, we have the root user credentials, which is the email/password provided during setup. While the best practice to never use the root account is commonly known, let’s log in and open AWS Trusted Advisor to see what recommendations it gives us on a brand new account.&lt;/p&gt;

&lt;p&gt;When you first open Trusted Advisor in a new account, it is not immediately obvious that many checks have yet to run. Trusted Advisor presents us with its dashboard with zero recommendations across all severity levels. Click on one of the categories to confirm that the checks have yet to run. Security is a good category to pick because some of that category’s checks are available with a basic support plan. After running a check, you will see something like this:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flvuplv03smy8d2lhu05k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flvuplv03smy8d2lhu05k.png" alt=" " width="244" height="46"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the timestamp of when it was the last run. If you instead see this, click the refresh icon:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fovhpz1ntg1n6hxqt8h6x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fovhpz1ntg1n6hxqt8h6x.png" alt=" " width="258" height="42"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Or even better, at the top of the page, click: &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fat0x8jwl8duskckgcozc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fat0x8jwl8duskckgcozc.png" alt=" " width="196" height="42"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It shouldn’t take long for the checks available for free to complete. As of this writing, with the basic (free) support plan in Trusted Advisor, there are six security checks and 51 service limit checks.&lt;/p&gt;

&lt;p&gt;Now that all of the checks are updated, click back to the Trusted Advisor dashboard, and we will see the accurate results:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw0ye3twk6cysj904r90m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw0ye3twk6cysj904r90m.png" alt=" " width="800" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We now have two items to fix, MFA on Root Account and IAM Use. We will do that now. We will configure MFA on our Root Account using a Virtual MFA application. Then we will create an IAM user with the AdministratorAccess policy attached, log out of the root user and log back in as that user.&lt;/p&gt;

&lt;p&gt;Now those two items are solved:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fctg4rl9y94z97fnsg7i2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fctg4rl9y94z97fnsg7i2.png" alt=" " width="799" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At the bottom of that screenshot, it explains that we need to upgrade our support plan to get the rest of the Trusted Advisor checks. Let’s do that. I have now upgraded the support plan to the business level ($100 a month), as that’s the lowest cost plan to get the “Full set of checks” [3] in Trusted Advisor. Then I refreshed all of the checks again.&lt;/p&gt;

&lt;p&gt;Now we have a lot more checks, especially in the security area. In total, we now have the following number of checks in each category:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cost Optimization: 22&lt;/li&gt;
&lt;li&gt;Security: 155&lt;/li&gt;
&lt;li&gt;Fault Tolerance: 25&lt;/li&gt;
&lt;li&gt;Performance: 13&lt;/li&gt;
&lt;li&gt;Service Limits: 51 (unchanged)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As of this writing, we have a total of 155 checks in the security category of Trusted Advisor, which is impressive. Digging a little deeper, 134 of those checks rely on AWS Security Hub and show no data until it is set up. We still need to set up AWS Security Hub in this account. I have confirmed that if you set up Security Hub but are not paying for at least the business-level support plan, you will not be able to see those 134 Security Hub recommendations in Trusted Advisor. Keep that in mind when choosing the support plan that fits your account.&lt;/p&gt;

&lt;p&gt;Now back to discussing the 15 new security checks available in Trusted Advisor after we upgraded to the business support plan. We now have recommendations on two in our brand-new empty account. They are:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq155gcsxn90ludf9ybst.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq155gcsxn90ludf9ybst.png" alt=" " width="799" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That’s easy enough to solve. Now we will set a password policy for our account in IAM and set up a multi-region CloudTrail. &lt;/p&gt;

&lt;p&gt;Now let’s refresh the checks in Trusted Advisor, then wait a few minutes. Hmm, now we have two new recommendations:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhixcv1nbjvdakhd7by9f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhixcv1nbjvdakhd7by9f.png" alt=" " width="800" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are now in the fault tolerance section and say “Investigation” is recommended rather than “Action” is recommended, so a lower severity level. The fault tolerance section now looks like this: &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp59bgl4ucsamj1e42a6s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp59bgl4ucsamj1e42a6s.png" alt=" " width="800" height="808"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In resolving the previous recommendations, we set up a CloudTrail, which requires an S3 bucket (and CloudTrail created it for us). We can easily enable versioning on that bucket for the second finding here. However, the first finding, “Amazon S3 Bucket Logging”, will be more challenging to solve, which I will explain next.&lt;/p&gt;

&lt;p&gt;To resolve this “Amazon S3 Bucket Logging” recommendation for a bucket, you must configure the bucket’s “server access logging” settings to point to another S3 bucket in the same AWS account [4]. This finding gets flagged on every S3 bucket that does not have “server access logging” configured. I cannot imagine it will go well if you enable a bucket to log to itself. This same account requirement means you will still have this finding on your AWS account unless you create an infinite loop of logging within your account (please don’t).&lt;/p&gt;

&lt;p&gt;A side note, despite AWS’s documentation recommending against using bucket ACLs to grant the S3 log delivery group access to your logging bucket [4]. AWS Support has confirmed bucket ACLs are the only way to satisfy this check in Trusted Advisor. Since I have confirmed, there is no way we can resolve this recommendation for the entire account. I recommend suppressing this one. However, I will leave it here for the rest of this post. Also note that a CloudTrail logging S3 Data Events does not satisfy this check in Trusted Advisor.&lt;/p&gt;

&lt;p&gt;That brings us to the end of the recommendations Trusted Advisor will provide us on our new AWS account that is not yet running any workloads. Next, let’s move to Security Hub, which requires AWS Config. &lt;/p&gt;

&lt;p&gt;I set up AWS Config and enabled Security Hub with all the security standards. As of the time of this writing, that is the following standards:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS Foundational Security Best Practices v1.0.0&lt;/li&gt;
&lt;li&gt;CIS AWS Foundations Benchmark v1.2.0&lt;/li&gt;
&lt;li&gt;CIS AWS Foundations Benchmark v1.4.0&lt;/li&gt;
&lt;li&gt;PCI DSS v3.2.1&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next, we give Security Hub a reasonable amount of time to update. I waited until the following day to resume, but Security Hub’s console says it can take up to two hours. Upon updating, Trusted Advisor now has the following recommendations:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbbdmyf5v5cscvbyd00d9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbbdmyf5v5cscvbyd00d9.png" alt=" " width="800" height="333"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And Security Hub reports the following:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqd28a1dpt4t4gwh93o9s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqd28a1dpt4t4gwh93o9s.png" alt=" " width="788" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How did AWS decide which checks to bring over to Trusted Advisor? Let’s get started by addressing the recommendations in Trusted Advisor and then we can come back to Security Hub and see what’s left.&lt;/p&gt;

&lt;p&gt;In Trusted Advisor, we have three items in Trusted Advisor’s higher priority category of “action recommended,” all three in security. Those are:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6qyzzdhq7u5ha69yo9ho.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6qyzzdhq7u5ha69yo9ho.png" alt=" " width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are straightforward. Let’s fix these.&lt;br&gt;&lt;br&gt;
We have now enabled GuardDuty.&lt;/p&gt;

&lt;p&gt;Next, the default VPC seems to have a default security group that allows all network traffic from members of that security group to communicate with other members. Usually, I would delete the default VPC, but since Trusted Advisor recommends changes to the default VPC, let’s do that and see where this leads. I’ll remove those inbound and outbound rules from that security group.&lt;/p&gt;

&lt;p&gt;Now to resolve the Hardware MFA recommendation. Previously Trusted Advisor told us to enable MFA for the root user, so we set up virtual MFA as most users do. However, now that we have set up Security Hub, we now see a recommendation that more than virtual MFA is needed. Trusted Advisor is now recommending that we configure a Hardware MFA for the root user. Yubikey is the most common for these hardware MFA keys. The great news is that in July 2022, AWS began providing hardware MFA keys for “U.S.-based AWS account root users who have spent more than $100 each month over the past three months” [5]. If that is you, go to &lt;a href="https://console.aws.amazon.com/securityhub/home/#/free-mfa-security-key" rel="noopener noreferrer"&gt;https://console.aws.amazon.com/securityhub/home/#/free-mfa-security-key&lt;/a&gt; to order your key.  &lt;/p&gt;

&lt;p&gt;In November 2022, AWS made it so that you can assign multiple MFA devices to your user, including the root user. However, I have confirmed that this check will flag non-compliant if you have any Virtual MFA devices assigned to your root user. So if you previously added a virtual MFA to your root user, you will need to remove it while adding the hardware MFA device. Now let’s give Trusted Advisor some time to refresh the checks.&lt;/p&gt;

&lt;p&gt;As we work on remediating these checks that Trusted Advisor is displaying from Security Hub, it is essential to know that the “last updated” timestamp in Trusted Advisor does not necessarily mean when the check was the last run. That timestamp is when Trusted Advisor was last updated, but it’s updating from AWS Config, which may not have checked the resource for several hours. The rule in AWS Config will say that Security Hub created it. To update these in Trusted Advisor, go to AWS Config, find the associated config rule, and then you can force AWS Config to re-evaluate the rule. Once the compliance status in AWS Config is updated, return to Trusted Advisor to refresh the check.&lt;/p&gt;

&lt;p&gt;Now our Trusted Advisor Recommendations look like this:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwladtekiy5xdlzc9igsk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwladtekiy5xdlzc9igsk.png" alt=" " width="800" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s take a look at those 2 in the fault-tolerance category:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ib2ipzu1vgjhbmhbmxu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ib2ipzu1vgjhbmhbmxu.png" alt=" " width="800" height="262"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first is the bucket logging issue we discussed in depth above. The second is that we do not have versioning enabled on the AWS config bucket. I will enable versioning now on that bucket.&lt;/p&gt;

&lt;p&gt;Then the 15 in the Security category:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsf50xygyuz4obu09ytjb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsf50xygyuz4obu09ytjb.png" alt=" " width="800" height="945"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s start working our way through these.&lt;br&gt;
&lt;strong&gt;1. Amazon EC2 should be configured to use VPC endpoints that are created for the Amazon EC2 service&lt;/strong&gt;&lt;br&gt;
Trusted Advisor wants us to add an Amazon EC2 VPC endpoint to the default VPC. Ok, so this is going to start incurring costs. A basic VPC (without a NAT Gateway, endpoints, flow logs, etc.), like the default VPC, does not incur any charges. But VPC endpoints are not free. Oh well, I’ll create it and see where this leads. We now have a VPC endpoint for the EC2 service.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. AWS Config should be enabled&lt;/strong&gt;&lt;br&gt;
This check, “PCI.Config.1”, requires AWS Config to record global resources to pass. [6]  So in AWS Config, I updated our settings to include global resources.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. CloudTrail log file validation should be enabled&lt;/strong&gt;&lt;br&gt;
We have enabled log file validation on our CloudTrail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. CloudTrail should have encryption at-rest enabled&lt;/strong&gt;&lt;br&gt;
We have enabled Log file SSE-KMS encryption on our CloudTrail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. CloudTrail trails should be integrated with Amazon CloudWatch Logs&lt;/strong&gt;&lt;br&gt;
We have configured CloudWatch logs integration from within our CloudTrail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. EBS default encryption should be enabled&lt;/strong&gt;&lt;br&gt;
Configured new EBS volumes to default to being encrypted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. EC2 subnets should not automatically assign public IP addresses&lt;/strong&gt;&lt;br&gt;
In our default VPC, we turned off “Auto-assign public IPv4 address” on all subnets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. Network ACLs should not allow ingress from 0.0.0.0/0 to port 22 or port 3389&lt;/strong&gt;&lt;br&gt;
On our default VPC’s NACL, we have added deny rules for TCP ports 22 and 3389.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9. S3 Block Public Access setting should be enabled&lt;/strong&gt;&lt;br&gt;
The two S3 buckets we have at this point already have this setting, but we want to enable “Block Public Access settings for this account” in S3 for the entire account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. S3 bucket server access logging should be enabled&lt;/strong&gt;&lt;br&gt;
We already discussed this earlier in this post.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;11. S3 buckets should have event notifications enabled&lt;/strong&gt;&lt;br&gt;
I do not understand why Trusted Advisor runs this check on all buckets. In my experience, it is rare to need event notifications on buckets. When you need them, you set them up. I recommend suppressing this one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;12. S3 buckets should have server-side encryption enabled&lt;/strong&gt;&lt;br&gt;
We have now enabled default encryption on the S3 buckets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;13. S3 buckets should require requests to use Secure Socket Layer&lt;/strong&gt;&lt;br&gt;
We have updated the bucket policy on our two buckets to require SSL.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;14. S3 buckets with versioning enabled should have lifecycle policies configured&lt;/strong&gt;&lt;br&gt;
We have created a lifecycle rule on each of our buckets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;15. VPC flow logging should be enabled in all VPCs&lt;/strong&gt;&lt;br&gt;
We have created a VPC flow log.&lt;/p&gt;

&lt;p&gt;While I was waiting for all of the checks to refresh, two new recommendations came up in Trusted Advisor:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1gjgcn44ci69h69tb2t5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1gjgcn44ci69h69tb2t5.png" alt=" " width="800" height="208"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To fix those, we will create a group, attach the AdministratorAccess policy to that group, make our IAM user that we’ve been using a member of that group, and disconnect the policy from being directly attached to our user. A new user is automatically attached to the policy IAMUserChangePassword. We will disconnect that as well. Then we will add MFA to our IAM user.&lt;/p&gt;

&lt;p&gt;Now our Trusted Advisor has two recommendations, both at the investigation level.  One in the fault tolerance and the other in the security category. However, both are the server access logging item we have already discussed in depth.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbpu1uue6cc1h44q4wfjz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbpu1uue6cc1h44q4wfjz.png" alt=" " width="800" height="251"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7sq32n1ommwov3d51l33.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7sq32n1ommwov3d51l33.png" alt=" " width="800" height="578"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhm35c4jm1fyfdtrhyzmb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhm35c4jm1fyfdtrhyzmb.png" alt=" " width="800" height="786"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have reached the end of Trusted Advisor giving us recommendations regarding our brand-new AWS account. Trusted Advisor will generate new recommendations if you keep the business or higher support plan as you add workloads to this account. To wrap up this post, let’s look at the remaining items in Security Hub to see what else we may want to do prior to adding workloads.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjy6szfkqaaqerhvmq1zb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjy6szfkqaaqerhvmq1zb.png" alt=" " width="509" height="682"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, this gives us a good amount of additional items to discuss.&lt;/p&gt;

&lt;p&gt;AWS Foundational Security Best Practices v1.0.0:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyf7a2nj3tivaqpwjierh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyf7a2nj3tivaqpwjierh.png" alt=" " width="799" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;CIS AWS Foundations Benchmark v1.2.0:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdwvbxx0i1yl9a09k7ni.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdwvbxx0i1yl9a09k7ni.jpg" alt=" " width="800" height="1239"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;CIS AWS Foundations Benchmark v1.4.0&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F38xvkxc52slh2vxkniag.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F38xvkxc52slh2vxkniag.jpg" alt=" " width="800" height="1095"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PCI DSS v3.2.1:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj69cn6aape4p66gl78ep.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj69cn6aape4p66gl78ep.png" alt=" " width="800" height="591"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the next post, we will start resolving the findings that Security Hub is giving us. We can also run Cloud Mapper. What else should we use to scan our account for possible results? Let me know in the comments or via &lt;a href="https://twitter.com/JonHolman_" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Please let me know if you would like to see me run any other tools against this account to report on Security Issues.&lt;/p&gt;

&lt;p&gt;References:&lt;br&gt;
[1] &lt;a href="https://aws.amazon.com/organizations/getting-started/best-practices/" rel="noopener noreferrer"&gt;https://aws.amazon.com/organizations/getting-started/best-practices/&lt;/a&gt;&lt;br&gt;
[2] &lt;a href="https://aws.amazon.com/blogs/mt/automate-account-creation-and-resource-provisioning-for-aws-govcloudus-using-aws-service-catalog-aws-organizations-and-aws-lambda/" rel="noopener noreferrer"&gt;https://aws.amazon.com/blogs/mt/automate-account-creation-and-resource-provisioning-for-aws-govcloudus-using-aws-service-catalog-aws-organizations-and-aws-lambda/&lt;/a&gt;&lt;br&gt;
[3] &lt;a href="https://aws.amazon.com/premiumsupport/plans/" rel="noopener noreferrer"&gt;https://aws.amazon.com/premiumsupport/plans/&lt;/a&gt;&lt;br&gt;
[4] &lt;a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html&lt;/a&gt;&lt;br&gt;
[5] &lt;a href="https://aws.amazon.com/blogs/security/eligible-customers-can-now-order-a-free-mfa-security-key/" rel="noopener noreferrer"&gt;https://aws.amazon.com/blogs/security/eligible-customers-can-now-order-a-free-mfa-security-key/&lt;/a&gt;&lt;br&gt;
[6] &lt;a href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-pcidss-to-disable.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-pcidss-to-disable.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>infrastructure</category>
      <category>security</category>
    </item>
    <item>
      <title>Go Global with AWS - Use AWS CloudFormation StackSets to go global with ease</title>
      <dc:creator>Jon Holman</dc:creator>
      <pubDate>Thu, 07 Apr 2022 02:35:59 +0000</pubDate>
      <link>https://dev.to/jonholman_/go-global-with-aws-use-aws-cloudformation-stacksets-to-go-global-with-ease-45ld</link>
      <guid>https://dev.to/jonholman_/go-global-with-aws-use-aws-cloudformation-stacksets-to-go-global-with-ease-45ld</guid>
      <description>&lt;p&gt;I have wanted to create a multi-region, global application with AWS to see how much effort it would be. I finally took some time to create a simple proof of concept, and I am amazed by how easy it was, thanks to CloudFormation StackSets. CloudFormation StackSets makes deploying the same stack to multiple regions and accounts easy. AWS CDK, AWS SAM, AWS CloudFormation, and I'm sure many other IaC tools can create CloudFormation StackSets. To keep this proof of concept small and straightforward, I used AWS SAM to simplify the creation of the CloudFormation resources for AWS Lambda with Amazon API Gateway in the regional deployments. These concepts can easily be applied to a more robust application to deploy across multiple accounts and regions.&lt;/p&gt;

&lt;p&gt;To begin, I created a simple single-region template using AWS SAM and its CLI while I worked on that. With the lambda function's code inline within the template. Once I had the per region template the way I wanted, I moved that template to be nested within a CloudFormation StackSet. I would have preferred to be able to keep the nested template as YAML. Supplying YAML for the StackSet's TemplateBody attribute resulted in the error message 'expected type: String, found: JSONObject.' It wanted a string, so I put a | after TemplateBody, which converted the YAML indented below into a multiline string. This sample leverages 16 AWS regions. The last time I ran it, it completed deployment in 18 minutes.&lt;/p&gt;

&lt;p&gt;This simple proof of concept only has one file, template.yaml, available in the GitHub gist below with instructions to deploy and remove beneath it.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;To deploy this sample application, you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  An AWS Account&lt;/li&gt;
&lt;li&gt;  A Route53 hosted zone in the AWS account you are using&lt;/li&gt;
&lt;li&gt;  Then to deploy, you can use any of these:

&lt;ul&gt;
&lt;li&gt;The AWS CLI installed on your workstation &lt;a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html" rel="noopener noreferrer"&gt;Install the AWS CLI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The AWS SAM CLI installed on your workstation &lt;a href="https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html" rel="noopener noreferrer"&gt;Install the SAM CLI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The AWS CloudFormation Console&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  To deploy your application for the first time.
&lt;/h3&gt;

&lt;p&gt;Run the following in your shell (replace &amp;lt;domain_name&amp;gt; and &amp;lt;route_53_zone_id&amp;gt; for your environment):&lt;/p&gt;

&lt;p&gt;For the AWS CLI:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws cloudformation create-stack --region us-east-1 --stack-name multi-region-sam-poc --template-body file://template.yaml --capabilities CAPABILITY_NAMED_IAM --parameters ParameterKey=DomainName,ParameterValue=&amp;lt;domain_name&amp;gt; ParameterKey=Route53ZoneId,ParameterValue=&amp;lt;route_53_zone_id&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For the AWS SAM CLI:&lt;br&gt;&lt;br&gt;
&lt;code&gt;sam deploy --guided&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  To delete the sample application that you created.
&lt;/h3&gt;

&lt;p&gt;For the AWS CLI:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws cloudformation delete-stack --region us-east-1 --stack-name multi-region-sam-poc&lt;/code&gt;  &lt;/p&gt;

&lt;p&gt;For the AWS SAM CLI:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sam delete&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading. If you have any questions or feedback, please leave a comment or message me on Twitter, link to the right.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>tooling</category>
      <category>serverless</category>
    </item>
    <item>
      <title>My Favorite Infrastructure as Code (IAC) Tool</title>
      <dc:creator>Jon Holman</dc:creator>
      <pubDate>Tue, 22 Mar 2022 14:14:35 +0000</pubDate>
      <link>https://dev.to/aws-builders/my-favorite-infrastructure-as-code-iac-tool-1m1k</link>
      <guid>https://dev.to/aws-builders/my-favorite-infrastructure-as-code-iac-tool-1m1k</guid>
      <description>&lt;p&gt;If you've read my previous blog posts, you know I love serverless technologies. My love of serverless technologies comes from my passion for creating performant, efficient solutions. My favorite aspect of serverless technologies is its ability to 'scale to zero,' meaning that when there are no requests, there are no consumed resources (other than persistent storage) and therefore no costs. Of course, we can turn off every type of web service. However, the difference between traditional systems and good serverless solutions is that our web service is still online and available to accept requests. Until there's a request to act on, nothing is running. While there are no running resources, there are no costs.&lt;/p&gt;

&lt;p&gt;Other points about serverless technologies:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Of course, there are still servers.

&lt;ul&gt;
&lt;li&gt;The servers are abstracted away by the Cloud Provider, and the application team does not manage or need to worry about them.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;  The service's pricing follows a pay-per-use model.

&lt;ul&gt;
&lt;li&gt;Pay for actual usage, not per hour of your web service being available.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;  No need for capacity planning and buying for your expected peak usage

&lt;ul&gt;
&lt;li&gt;The managed services scale to meet demand.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;  Highly available / fault-tolerant

&lt;ul&gt;
&lt;li&gt;The services are multi-AZ.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The serverless technology that I use the most is AWS Lambda. AWS Lambda is AWS's Functions-as-a-Service offering. When I first started using AWS Lambda, it was through the console. Managing lambdas, or any resource, through the console is not recommended because it is slow, not scalable, challenging to improve iteratively, and risks inconsistency from one environment to the next. The best practice is to have everything defined as code. In addition to our application code, we should also define our infrastructure as code. Our Infrastructure-as-Code (IaC) makes it easy to improve iteratively, easily repeatable (i.e., create another environment), and ready to be moved into an automated pipeline.&lt;/p&gt;

&lt;p&gt;I originally started using the serverless framework to move to an IaC solution for my lambda projects. As I started using the serverless framework, I quickly found that while it is best practice to manage your serverless projects as IaC. It is easier as well. With everything for the project in code, the infrastructure, and the actual application, you can commit it to version control (Git) and then iteratively improve on it from there. With git diff, you can always compare what you currently have in your working copy to what was last committed. I find that setup very productive while working on the solution I am creating. Then using a framework, like the serverless framework, makes it a lot easier to manage configuration items. The first thing I remember finding with the serverless framework was how much easier it was to manage cross-origin resource sharing (CORS) settings with its IaC rather than directly in the console.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Later I moved to a company where CloudFormation was the de facto IaC. I had previously used Terraform for all of my non-serverless IaC project needs. Soon after, I learned about AWS Serverless Application Model (SAM). AWS SAM is an extension of AWS CloudFormation that makes the building of serverless projects even more efficient. AWS SAM includes a CloudFormation macro, referenced in the template under the Transform key. That macro adds to the library of CloudFormation resources a group of elements prefaced with AWS::Serverless. When you include that transform in your CloudFormation template, you can use those additional resources in your template. When the CloudFormation service receives your template, the macro will run and expand those elements into the actual CloudFormation required had you not used the macro. This process often will create many more CloudFormation resources to accomplish what the SAM macro had simplified for you. After processing that transform, CloudFormation creates the resources like it usually would.&lt;/p&gt;

&lt;p&gt;AWS SAM also includes a useful CLI that quickly enables us to get things done from the command line. So in my IaC journey, I then moved to use AWS SAM. I was pleased with AWS SAM until I started trying out the AWS Cloud Development Kit (CDK). The AWS CDK won me over because it uses the programming languages we already use for our projects. Using the programming languages, we are already familiar with obviously brings that language's looping and conditional logic, which can be a massive plus to writing and maintaining IaC. Another big plus is using the programming language to provide familiar ways to abstract reusable code into modules (which CDK calls Level 3 Constructs).&lt;/p&gt;

&lt;p&gt;I was happy with AWS CDK and could not imagine a way for it to get better. But it did. The team at&amp;nbsp;&lt;a href="https://serverless-stack.com/" rel="noopener noreferrer"&gt;serverless-stack.com&lt;/a&gt;&amp;nbsp;created SST. As the project's GitHub page states, 'Serverless Stack (SST) is a framework that makes it easy to build serverless apps. It's an extension of&amp;nbsp;&lt;a href="https://aws.amazon.com/cdk/" rel="noopener noreferrer"&gt;AWS CDK&lt;/a&gt;&amp;nbsp;and its features'. My favorite features of SST are its CLI and the Static Site construct it provides. The CLI and Static Site construct enables you to create a serverless application's backend and frontend (full-stack) in one project and deploy it with a single command. Your frontend application will require a reference to the backend for the application to work. The provided CLI and construct does that for you.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Not only does SST extend AWS CDK, to make it even better. The Serverless-Stack team provides full-stack demo applications, including a step-by-step guide to build a full-stack notes application. Having a working full-stack application to play around with eased the task for me to get comfortable working on frontend applications using both React and Angular.&lt;/p&gt;

&lt;p&gt;SST also features a live lambda development environment. To me, this is magical. When you are in an SST project at your terminal, you run npx sst start. At that point, it deploys resources to your AWS account and runs locally in this live development mode. You can then edit your lambda functions locally, and they immediately take effect. I do not need to understand how this works fully. I know it works, and it's fantastic. I have navigated around in the console from the projects I have used SST. From that observation, I understand that SST creates a particular lambda function for local development stacks and an associated API Gateway configured for WebSockets. I gather that the particular lambda function and WebSockets API Gateway relay the requests back to your running SST CLI where the dev environment invocations occur. If you would like to learn more about how that works, I see they documented it at&amp;nbsp;&lt;a href="https://docs.serverless-stack.com/live-lambda-development#sst-start" rel="noopener noreferrer"&gt;https://docs.serverless-stack.com/live-lambda-development#sst-start&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Even then, I thought it could not get better than SST. The team at serverless-stack then added a console on their website that you can launch and easily manage many resources within your stack that is currently running using your local CLI.&lt;/p&gt;

&lt;p&gt;I encourage you to give SST a try.&lt;/p&gt;

&lt;p&gt;References:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/cdk/" rel="noopener noreferrer"&gt;https://aws.amazon.com/cdk/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://serverless-stack.com/" rel="noopener noreferrer"&gt;https://serverless-stack.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.serverless-stack.com/" rel="noopener noreferrer"&gt;https://docs.serverless-stack.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.serverless-stack.com/live-lambda-development#sst-start" rel="noopener noreferrer"&gt;https://docs.serverless-stack.com/live-lambda-development#sst-start&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resources-and-properties.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resources-and-properties.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>serverless</category>
      <category>aws</category>
      <category>tooling</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
