-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to bypass automatic tagging by adding comment above spec…
…ific resources.
- Loading branch information
1 parent
c6a0b50
commit 0359fa4
Showing
16 changed files
with
345 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Description: Sample EBS Volume with EC2 instance template | ||
Resources: | ||
#YOR:SKIP | ||
NewVolume: | ||
Type: AWS::EC2::Volume | ||
Properties: | ||
Size: 100 | ||
Encrypted: true | ||
#Encrypted: false | ||
Tags: | ||
- Key: MyTag | ||
Value: TagValue | ||
- Key: Name | ||
Value: !Ref EnvironmentName | ||
AvailabilityZone: us-west-2a | ||
DeletionPolicy: Snapshot | ||
|
||
NewVolume2: | ||
Type: AWS::EC2::Volume | ||
Properties: | ||
Size: 100 | ||
Encrypted: true | ||
#Encrypted: false | ||
Tags: | ||
- Key: MyTag | ||
Value: TagValue | ||
- Key: Name | ||
Value: !Ref EnvironmentName | ||
AvailabilityZone: us-west-2a | ||
DeletionPolicy: Snapshot | ||
|
||
Outputs: | ||
VolumeId: | ||
Value: !Ref NewVolume | ||
Export: | ||
Name: NewVolumeId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
AWSTemplateFormatVersion: '2010-09-09' | ||
Description: Sample EBS Volume with EC2 instance template | ||
#yor:skipAll | ||
Resources: | ||
NewVolume: | ||
Type: AWS::EC2::Volume | ||
Properties: | ||
Size: 100 | ||
Encrypted: true | ||
#Encrypted: false | ||
Tags: | ||
- Key: MyTag | ||
Value: TagValue | ||
- Key: Name | ||
Value: !Ref EnvironmentName | ||
AvailabilityZone: us-west-2a | ||
DeletionPolicy: Snapshot | ||
|
||
NewVolume2: | ||
Type: AWS::EC2::Volume | ||
Properties: | ||
Size: 100 | ||
Encrypted: true | ||
#Encrypted: false | ||
Tags: | ||
- Key: MyTag | ||
Value: TagValue | ||
- Key: Name | ||
Value: !Ref EnvironmentName | ||
AvailabilityZone: us-west-2a | ||
DeletionPolicy: Snapshot | ||
|
||
Outputs: | ||
VolumeId: | ||
Value: !Ref NewVolume | ||
Export: | ||
Name: NewVolumeId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Description: Sample EBS Volume with EC2 instance template | ||
Resources: | ||
NewVolume: | ||
Type: AWS::EC2::Volume | ||
Properties: | ||
Size: 100 | ||
Encrypted: true | ||
#Encrypted: false | ||
Tags: | ||
- Key: MyTag | ||
Value: TagValue | ||
- Key: Name | ||
Value: !Ref EnvironmentName | ||
AvailabilityZone: us-west-2a | ||
DeletionPolicy: Snapshot | ||
|
||
Outputs: | ||
VolumeId: | ||
Value: !Ref NewVolume | ||
Export: | ||
Name: NewVolumeId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#yor:skip | ||
resource "aws_vpc" "example_vpc" { | ||
cidr_block = "10.0.0.0/16" | ||
tags = { | ||
} | ||
} | ||
|
||
resource "aws_subnet" "example_subnet" { | ||
vpc_id = aws_vpc.example_vpc.id | ||
cidr_block = "10.0.1.0/24" | ||
availability_zone = "us-west-1a" | ||
tags = { | ||
yor_name = "example_subnet" | ||
yor_trace = "74091a97-d11a-4500-a0c3-af942a0d8e00" | ||
} | ||
} | ||
|
||
resource "aws_instance" "example_instance" { | ||
ami = "ami-0c55b159cbfafe1f0" | ||
instance_type = "t2.micro" | ||
subnet_id = aws_subnet.example_subnet.id | ||
tags = { | ||
} | ||
} |
Oops, something went wrong.