Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Disable EBS volume for storage gateway #511

Merged
merged 1 commit into from
Jun 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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