Skip to content

Commit

Permalink
chore: fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Mar 30, 2023
1 parent 1dbd932 commit ff98f40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ class MyConvertedCode extends cdktf.TerraformStack {
new aws.provider.AwsProvider(this, \\"aws\\", {
region: \\"us-east-1\\",
});
const awsInstanceWeb = new aws.instance.Instance(this, \\"web\\", {
ami: \\"ami-a1b2c3d4\\",
instanceType: \\"t2.micro\\",
});
new aws.instance.Instance(this, \\"example\\", {
ami: \\"ami-a1b2c3d4\\",
iamInstanceProfile: \\"aws_iam_instance_profile\\",
Expand Down
6 changes: 6 additions & 0 deletions packages/@cdktf/hcl2cdk/test/resource-meta-properties.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ describe("meta-properties", () => {
provider "aws" {
region = "us-east-1"
}
resource "aws_instance" "web" {
ami = "ami-a1b2c3d4"
instance_type = "t2.micro"
}
resource "aws_instance" "example" {
ami = "ami-a1b2c3d4"
instance_type = "t2.micro"
Expand Down

0 comments on commit ff98f40

Please sign in to comment.