We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4544f94 commit 77ae067Copy full SHA for 77ae067
examples/ec2-autoscaling/main.tf
@@ -93,8 +93,24 @@ module "ecs_service" {
93
}
94
95
96
+ create_infrastructure_iam_role = true
97
+ volume_configuration = {
98
+ ebs-volume = {
99
+ managed_ebs_volume = {
100
+ encrypted = true
101
+ file_system_type = "xfs"
102
+ size_in_gb = 5
103
+ volume_type = "gp3"
104
+ }
105
106
107
+
108
volume = {
- my-vol = {}
109
+ my-vol = {},
110
111
+ name = "ebs-volume"
112
+ configure_at_launch = true
113
114
115
116
# Container definition(s)
@@ -113,6 +129,10 @@ module "ecs_service" {
129
{
130
sourceVolume = "my-vol",
131
containerPath = "/var/www/my-vol"
132
+ },
133
+ {
134
+ containerPath = "/ebs/data"
135
+ sourceVolume = "ebs-volume"
136
117
137
]
118
138
0 commit comments