Project: KICS (Provisioning / Security & Compliance)
File: 0b0556ea-9cd9-476f-862e-20679dda752b.md

title: BOM - AWS EBS hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 0b0556ea-9cd9-476f-862e-20679dda752b Query name: BOM - AWS EBS Platform: CloudFormation Severity: <span style="color:#CCCCCC">Trace</span> Category: Bill Of Materials URL: A list of EBS resources found. Amazon Elastic Block Store (Amazon EBS) is an easy-to-use, scalable, high-performance block-storage service designed for Amazon Elastic Compute Cloud (Amazon EC2).<br> ```yaml title="Positive test num. 1 - yaml file" hl_lines="4" AWSTemplateFormatVersion: "2010-09-09" Description: "Volume" Resources: NewVolume: Type: AWS::EC2::Volume Properties: Size: 100 Encrypted: true AvailabilityZone: !GetAtt Ec2Instance.AvailabilityZone Tags: Key: MyTag Value: TagValue DeletionPolicy: Snapshot ``` ```json title="Positive test num. 2 - json file" hl_lines="5" { "AWSTemplateFormatVersion": "2010-09-09", "Description": "Volume", "Resources": { "NewVolume": { "Type": "AWS::EC2::Volume", "Properties": { "Encrypted": true, "AvailabilityZone": "Ec2Instance.AvailabilityZone", "Tags": [ { "Key": "MyTag", "Value": "TagValue" } ], "Size": 100 }, "DeletionPolicy": "Snapshot" } } } ``` ```yaml title="Positive test num. 3 - yaml file" hl_lines="4" AWSTemplateFormatVersion: "2010-09-09" Description: "Volume" Resources: NewVolume: Type: AWS::EC2::Volume Properties: Size: 100 Encrypted: false AvailabilityZone: !GetAtt Ec2Instance.AvailabilityZone Tags: Key: Name Value: NewVolume DeletionPolicy: Snapshot ``` <details><summary>Positive test num. 4 - json file</summary> ```json hl_lines="5" { "AWSTemplateFormatVersion": "2010-09-09", "Description": "Volume", "Resources": { "NewVolume": { "Type": "AWS::EC2::Volume", "Properties": { "Encrypted": false, "AvailabilityZone": "Ec2Instance.AvailabilityZone", "Tags": [ { "Key": "Name", "Value": "NewVolume" } ], "Size": 100 }, "DeletionPolicy": "Snapshot" } } } ``` </details> <details><summary>Positive test num. 5 - yaml file</summary> ```yaml hl_lines="4" AWSTemplateFormatVersion: "2010-09-09" Description: "Volume" Resources: NewVolume: Type: AWS::EC2::Volume Properties: Size: 100 AvailabilityZone: !GetAtt Ec2Instance.AvailabilityZone Tags: Key: Name Value: NewVolume DeletionPolicy: Snapshot ``` </details> <details><summary>Positive test num. 6 - json file</summary> ```json hl_lines="5" { "AWSTemplateFormatVersion": "2010-09-09", "Description": "Volume", "Resources": { "NewVolume": { "Type": "AWS::EC2::Volume", "Properties": { "AvailabilityZone": "Ec2Instance.AvailabilityZone", "Tags": [ { "Key": "Name", "Value": "NewVolume" } ], "Size": 100 }, "DeletionPolicy": "Snapshot" } } } ``` </details> ```yaml title="Negative test num. 1 - yaml file" AWSTemplateFormatVersion: '2010-09-09' Resources: myDistribution: Type: AWS::CloudFront::Distribution Properties: DistributionConfig: Enabled: true ``` ```json title="Negative test num. 2 - json file" { "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "myDistribution": { "Type": "AWS::CloudFront::Distribution", "Properties": { "DistributionConfig": { "Enabled": "true" } } } } } ```