access_logs settings are not included when when importing aws_lb #2969
Labels
bug
Addresses a defect in current functionality.
service/elbv2
Issues and PRs that pertain to the elbv2 service.
Milestone
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
None.
Panic Output
None.
Expected Behavior
When importing ALB, Terraform should also import settings for access logs.
Actual Behavior
Settings for access logs are not imported.
Steps to Reproduce
Create the resources from .tf file above, then delete ALB from terraform state and import, access logs settings will be gone:
terraform apply
terraform state show aws_lb.alb
# confirm access logs settings are present, save ALB's idterraform state rm aws_lb.alb
terraform import aws_lb.alb ALB_ARN
terraform state show aws_lb.alb
# access logs settings are not presentterraform plan
# asks to add access logs settingsImportant Factoids
None.
References
None.
The text was updated successfully, but these errors were encountered: