Skip to content

Commit

Permalink
chore: Disable EBS volume for storage gateway (#511)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Nguyen <thingut@amazon.com>
  • Loading branch information
nguyen102 and Tim Nguyen authored Jun 3, 2021
1 parent e86fd06 commit 5a08c06
Showing 1 changed file with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,24 +158,24 @@ Resources:
# Signal result to CloudFormation
/opt/aws/bin/cfn-signal -e $? --stack "${AWS::StackName}" --resource "EC2Instance" --region "${AWS::Region}"

VolumeAttach:
Type: 'AWS::EC2::VolumeAttachment'
Properties:
Device: /dev/sdc
InstanceId: !Ref EC2Instance
VolumeId: !Ref CacheVolume

CacheVolume:
Type: 'AWS::EC2::Volume'
Properties:
AvailabilityZone: !GetAtt
- EC2Instance
- AvailabilityZone
Size: 150
VolumeType: gp2
Tags:
- Key: Name
Value: !Join ['-', [Ref: Namespace, 'ec2-storage-gateway-volume']]
# VolumeAttach:
# Type: 'AWS::EC2::VolumeAttachment'
# Properties:
# Device: /dev/sdc
# InstanceId: !Ref EC2Instance
# VolumeId: !Ref CacheVolume
#
# CacheVolume:
# Type: 'AWS::EC2::Volume'
# Properties:
# AvailabilityZone: !GetAtt
# - EC2Instance
# - AvailabilityZone
# Size: 150
# VolumeType: gp2
# Tags:
# - Key: Name
# Value: !Join ['-', [Ref: Namespace, 'ec2-storage-gateway-volume']]

ElasticIP:
Type: AWS::EC2::EIP
Expand All @@ -199,9 +199,9 @@ Outputs:
Description: Elastic IP
Value: !Ref ElasticIP

CacheVolume:
Description: EC2 Volume
Value: !Ref CacheVolume
# CacheVolume:
# Description: EC2 Volume
# Value: !Ref CacheVolume

SecurityGroup:
Description: Security Group
Expand Down

0 comments on commit 5a08c06

Please sign in to comment.