Skip to content

Instantly share code, notes, and snippets.

View fernandostc's full-sized avatar
🏠
Working from home

Fernando Cardoso (Kalopa) fernandostc

🏠
Working from home
View GitHub Profile
@fernandostc
fernandostc / cloudformation_automated_iac.yml
Last active November 17, 2021 16:00
CFT to create an automated IaC with Security
Parameters:
CloudOneConformityApiKey:
Type: String
Description: API Key generated under your Conformity dashboard.
NoEcho: true
CloudOneConformityRegion:
Type: String
Default: us-west-2
AllowedValues:
- us-west-2
@fernandostc
fernandostc / Bad_CFT.yml
Created October 21, 2020 22:37
Bad_CFT.yml
Resources:
Ec2Instance:
Type: 'AWS::EC2::Instance'
Properties:
SecurityGroups:
- !Ref InstanceSecurityGroup
KeyName: ec2-keypair
ImageId: ami-0ff8a91507f77f867
Tags:
-
Resources:
Ec2Instance:
Type: 'AWS::EC2::Instance'
Properties:
SecurityGroups:
- !Ref InstanceSecurityGroup
KeyName: ec2-keypair
ImageId: ami-id
InstanceSecurityGroup:
Type: 'AWS::EC2::SecurityGroup'
Resources:
EC2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType:
Ref: InstanceType
SecurityGroups:
- Ref: InstanceSecurityGroup
KeyName:
Ref: Test