ALB: Enabled s3.enabled and changed default value of s3.enabled
- Disabled access logs by default - Enabled case to set value of s3.enabled
This commit is contained in:
parent
16c1366e63
commit
f290a3a955
|
@ -91,7 +91,7 @@ func resourceAwsAlb() *schema.Resource {
|
|||
"enabled": &schema.Schema{
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
Default: true,
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -234,6 +234,8 @@ func resourceAwsAlbRead(d *schema.ResourceData, meta interface{}) error {
|
|||
accessLogMap := map[string]interface{}{}
|
||||
for _, attr := range attributesResp.Attributes {
|
||||
switch *attr.Key {
|
||||
case "access_logs.s3.enabled":
|
||||
accessLogMap["enabled"] = *attr.Value
|
||||
case "access_logs.s3.bucket":
|
||||
accessLogMap["bucket"] = *attr.Value
|
||||
case "access_logs.s3.prefix":
|
||||
|
|
Loading…
Reference in New Issue