From 416d6ae958b11e445be614afcb72adddf828cc2b Mon Sep 17 00:00:00 2001 From: Torian Crane Date: Thu, 4 Jan 2024 11:46:01 +0000 Subject: [PATCH] updated get ami code --- .../registry/packages/aws/how-to-guides/ec2-webserver.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/default/content/registry/packages/aws/how-to-guides/ec2-webserver.md b/themes/default/content/registry/packages/aws/how-to-guides/ec2-webserver.md index b6abf5b072..0e28667021 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/ec2-webserver.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/ec2-webserver.md @@ -82,7 +82,7 @@ const aws = require("@pulumi/aws"); const pulumi = require("@pulumi/pulumi"); let size = "t2.micro"; // t2.micro is available in the AWS free tier -let ami = aws.getAmiOutput({ +let ami = aws.ec2.getAmiOutput({ filters: [{ name: "name", values: ["amzn-ami-hvm-*"], @@ -115,7 +115,7 @@ import * as aws from "@pulumi/aws"; import * as pulumi from "@pulumi/pulumi"; const size = "t2.micro"; // t2.micro is available in the AWS free tier -const ami = aws.getAmiOutput({ +const ami = aws.ec2.getAmiOutput({ filters: [{ name: "name", values: ["amzn-ami-hvm-*"],