File size: 1,448 Bytes
cfe566e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | AWSTemplateFormatVersion: "2010-09-09"
Description: "Sample CFN stack with intentional security issues for ArchLens testing"
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
EnableDnsHostnames: true
WebServer:
Type: AWS::EC2::Instance
Properties:
InstanceType: m5.4xlarge
ImageId: ami-0123456789abcdef0
OpenSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: "Web tier SG"
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 22
ToPort: 22
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: 443
ToPort: 443
CidrIp: 0.0.0.0/0
ProductionDB:
Type: AWS::RDS::DBInstance
Properties:
DBInstanceClass: db.r5.large
Engine: mysql
StorageEncrypted: false
PubliclyAccessible: true
AllocatedStorage: 100
DataBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: company-data-bucket
AccessControl: PublicRead
WildcardRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Action: "*"
Resource: "*"
OrderQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: order-processing-queue
ApiEndpoint:
Type: AWS::ApiGateway::RestApi
Properties:
Name: ProductionAPI
|