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

[Bug]: elastic beanstalk environment update failed #32284

Closed
Omerlustig opened this issue Jun 29, 2023 · 7 comments · Fixed by #36074
Closed

[Bug]: elastic beanstalk environment update failed #32284

Omerlustig opened this issue Jun 29, 2023 · 7 comments · Fixed by #36074
Labels
bug Addresses a defect in current functionality. service/elasticbeanstalk Issues and PRs that pertain to the elasticbeanstalk service.
Milestone

Comments

@Omerlustig
Copy link

Omerlustig commented Jun 29, 2023

Terraform Core Version

1.5.1

AWS Provider Version

5.5.0

Affected Resource(s)

when updating beanstalk environment getting this error:

 Error: updating Elastic Beanstalk Environment (e-2brbmjtpwk): InvalidParameterValue: Environment named neo-web-app-devops is in an invalid state for this operation. Must be Ready.
status code: 400, request id: 8e3a7120-33df-46fc-b215-0ee631d4ac5c 

started happening after upgrading to provider version 5.5.0 from 4.62.0

Expected Behavior

update should finish successfully.

Actual Behavior

beanstalk update fail.

 Error: updating Elastic Beanstalk Environment (e-2brbmjtpwk): InvalidParameterValue: Environment named neo-web-app-devops is in an invalid state for this operation. Must be Ready.

Relevant Error/Panic Output Snippet

Error: updating Elastic Beanstalk Environment (e-2brbmjtpwk): InvalidParameterValue: Environment named neo-web-app-devops is in an invalid state for this operation. Must be Ready.
status code: 400, request id: 8e3a7120-33df-46fc-b215-0ee631d4ac5c

Details:
the error starts happening from 4.63.0 version of the proivder (did not happen in 4.62.0). and keeps happening even when using latest version.
it happens when beanstalk environment tags are changed. so probably it might be related to that.
when deploying the beanstalk environment without changing any tags it works fine but once a tag is changed it fails with the error that the environment is not ready

Terraform Configuration Files

 Error: updating Elastic Beanstalk Environment (e-2brbmjtpwk): InvalidParameterValue: Environment named neo-web-app-devops is in an invalid state for this operation. Must be Ready.
status code: 400, request id: 8e3a7120-33df-46fc-b215-0ee631d4ac5c 

Steps to Reproduce

update elastic beanstalk environment with terraform version 1.5.1 and aws provider version 5.5.0

Debug Output

4.62.0 works good
issue started at 4.63.0

might be related to tags that are being chaged (didnt happen in version 4.62.0)

16:46:18  2023-07-23T13:46:18.423Z [DEBUG] provider.terraform-provider-aws_v5.9.0_x5: [DEBUG] Waiting for state to become: [Successful]
16:46:18  2023-07-23T13:46:18.425Z [ERROR] provider.terraform-provider-aws_v5.9.0_x5: Response contains error diagnostic: diagnostic_detail= diagnostic_severity=ERROR diagnostic_summary="updating Elastic Beanstalk Environment (******): InvalidParameterValue: Environment named ****** is in an invalid state for this operation. Must be Ready.
status code: 400, request id: 10e608e4-86a7-4124-8288-39a721c40b4e" tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=c7dfea40-18d6-5453-9c5f-241d867f9546 tf_resource_type=aws_elastic_beanstalk_environment @module=sdk.proto tf_proto_version=5.3 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-go@v0.18.0/tfprotov5/internal/diag/diagnostics.go:58 timestamp=2023-07-23T13:46:18.425Z

Failure - plan output

16:44:32    # module.deviceStoreModule.aws_elastic_beanstalk_environment.neoAppEnvironment will be updated in-place
16:44:32    ~ resource "aws_elastic_beanstalk_environment" "neoAppEnvironment" {
16:44:32          id                     = "e-""*********"""
16:44:32          name                   = ""*********""
16:44:32        ~ tags                   = {
16:44:32            - "backend-branch"             = ""*********"" -> null
16:44:32            - "backend-version"            = "1.0.0.1260" -> null
16:44:32              "fp-application-version"     = "1.0.0"
16:44:32              "fp-component"               = "ElasticBeanstalk"
16:44:32              "fp-cost-centre"             = ""*********""
16:44:32              "fp-department-code"         = """*********"""
16:44:32            - "fp-deployer-name"           = "*********" -> null
16:44:32              "fp-deployment-tool"         = "terraform"
16:44:32              "fp-deployment-tool-version" = "v1.5.2"
16:44:32              "fp-environment"             = "dev"
16:44:32              "fp-jira-project"            = ""*********""
16:44:32              "fp-product"                 = ""*********""
16:44:32              "fp-team"                    = ""*********""
16:44:32              "fp-technical-owner"         = ""*********""
16:44:32              "name"                       = ""*********""
16:44:32            - "provision-branch-build"     = ""*********"" -> null
16:44:32              "workspace"                  = ""*********""
16:44:32          }
16:44:32        ~ tags_all               = {
16:44:32            - "backend-branch"             = "master" -> null
16:44:32            - "backend-version"            = "1.0.0.1260" -> null
16:44:32            - "fp-deployer-name"           = ""*********"" -> null
16:44:32            - "provision-branch-build"     = ""*********"" -> null
16:44:32              # (13 unchanged elements hidden)
16:44:32          }
16:44:32        ~ version_label          = "2023_07_23T13_31_06Z_beanstalk_configuration.zip" -> (known after apply)
16:44:32          # (15 unchanged attributes hidden)
16:44:32  
16:44:32        - setting {
16:44:32            - name      = "AUDIT_LOG_ENABLE" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "true" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "AWS_REGION" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "us-east-1" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "BatchSize" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:command" -> null
16:44:32            - value     = "1" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "BatchSizeType" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:command" -> null
16:44:32            - value     = "Fixed" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "ConfigDocument" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:healthreporting:system" -> null
16:44:32            - value     = jsonencode(
16:44:32                  {
16:44:32                    - CloudWatchMetrics = {
16:44:32                        - Environment = {
16:44:32                            - ApplicationLatencyP99    = 60
16:44:32                            - ApplicationRequests4xx   = 60
16:44:32                            - ApplicationRequests5xx   = 60
16:44:32                            - ApplicationRequestsTotal = 60
16:44:32                          }
16:44:32                        - Instance    = {
16:44:32                            - ApplicationLatencyP99    = 60
16:44:32                            - ApplicationRequests4xx   = 60
16:44:32                            - ApplicationRequests5xx   = 60
16:44:32                            - ApplicationRequestsTotal = 60
16:44:32                            - InstanceHealth           = 60
16:44:32                            - LoadAverage1min          = 60
16:44:32                            - RootFilesystemUtil       = 60
16:44:32                          }
16:44:32                      }
16:44:32                    - Version           = 1
16:44:32                  }
16:44:32              ) -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "DeleteOnTerminate" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:cloudwatch:logs" -> null
16:44:32            - value     = "true" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "DeploymentPolicy" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:command" -> null
16:44:32            - value     = "AllAtOnce" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "ELBSubnets" -> null
16:44:32            - namespace = "aws:ec2:vpc" -> null
16:44:32            - value     = " subnet-"*********",subnet-"*********"" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "HISTORY_ENABLED" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "true" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "HealthCheckPath" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:environment:process:default" -> null
16:44:32            - value     = "/server/health-check" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "IamInstanceProfile" -> null
16:44:32            - namespace = "aws:autoscaling:launchconfiguration" -> null
16:44:32            - value     = ""*********"" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "IdleTimeout" -> null
16:44:32            - namespace = "aws:elbv2:loadbalancer" -> null
16:44:32            - value     = "600" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "InstanceType" -> null
16:44:32            - namespace = "aws:autoscaling:launchconfiguration" -> null
16:44:32            - value     = "t4g.medium" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "LOG_LEVEL" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "INFO" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "ListenerEnabled" -> null
16:44:32            - namespace = "aws:elbv2:listener:default" -> null
16:44:32            - value     = "false" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "LoadBalancerType" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:environment" -> null
16:44:32            - value     = "application" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "ManagedActionsEnabled" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:managedactions" -> null
16:44:32            - value     = "true" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "MaxSize" -> null
16:44:32            - namespace = "aws:autoscaling:asg" -> null
16:44:32            - value     = "5" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "MinSize" -> null
16:44:32            - namespace = "aws:autoscaling:asg" -> null
16:44:32            - value     = "1" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "PreferredStartTime" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:managedactions" -> null
16:44:32            - value     = "SUN:09:00" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "Protocol" -> null
16:44:32            - namespace = "aws:elbv2:listener:443" -> null
16:44:32            - value     = "HTTPS" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "RetentionInDays" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:cloudwatch:logs" -> null
16:44:32            - value     = "90" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "RollingUpdateEnabled" -> null
16:44:32            - namespace = "aws:autoscaling:updatepolicy:rollingupdate" -> null
16:44:32            - value     = "false" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "RollingUpdateType" -> null
16:44:32            - namespace = "aws:autoscaling:updatepolicy:rollingupdate" -> null
16:44:32            - value     = "Health" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "SERVER_PORT" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "5000" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "SSLCertificateArns" -> null
16:44:32            - namespace = "aws:elbv2:listener:443" -> null
16:44:32            - value     = "arn:aws:acm:us-east-1:"*********":certificate/"*********"" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "ServiceRole" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:environment" -> null
16:44:32            - value     = "arn:aws:iam::"*********":role/"*********"" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "StreamLogs" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:cloudwatch:logs" -> null
16:44:32            - value     = "true" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "Subnets" -> null
16:44:32            - namespace = "aws:ec2:vpc" -> null
16:44:32            - value     = "subnet-"*********",subnet-"*********"" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "SystemType" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:healthreporting:system" -> null
16:44:32            - value     = "enhanced" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "UpdateLevel" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:managedactions:platformupdate" -> null
16:44:32            - value     = "minor" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "VPCId" -> null
16:44:32            - namespace = "aws:ec2:vpc" -> null
16:44:32            - value     = "vpc-0cda2795ba1b56d4b" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "accountType" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "dev" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "byob_replication_role_arn" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "arn:aws:iam::"*********":role/"*********"" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "environmentName" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "dev05" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "fpLogLevel" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "INFO" -> null
16:44:32          }
16:44:32        - setting {
16:44:32            - name      = "spring_profiles_active" -> null
16:44:32            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:44:32            - value     = "dev" -> null
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "AUDIT_LOG_ENABLE"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "true"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "AWS_REGION"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "us-east-1"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "BatchSize"
16:44:32            + namespace = "aws:elasticbeanstalk:command"
16:44:32            + value     = "1"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "BatchSizeType"
16:44:32            + namespace = "aws:elasticbeanstalk:command"
16:44:32            + value     = "Fixed"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "ConfigDocument"
16:44:32            + namespace = "aws:elasticbeanstalk:healthreporting:system"
16:44:32            + value     = jsonencode(
16:44:32                  {
16:44:32                    + CloudWatchMetrics = {
16:44:32                        + Environment = {
16:44:32                            + ApplicationLatencyP99    = 60
16:44:32                            + ApplicationRequests4xx   = 60
16:44:32                            + ApplicationRequests5xx   = 60
16:44:32                            + ApplicationRequestsTotal = 60
16:44:32                          }
16:44:32                        + Instance    = {
16:44:32                            + ApplicationLatencyP99    = 60
16:44:32                            + ApplicationRequests4xx   = 60
16:44:32                            + ApplicationRequests5xx   = 60
16:44:32                            + ApplicationRequestsTotal = 60
16:44:32                            + InstanceHealth           = 60
16:44:32                            + LoadAverage1min          = 60
16:44:32                            + RootFilesystemUtil       = 60
16:44:32                          }
16:44:32                      }
16:44:32                    + Version           = 1
16:44:32                  }
16:44:32              )
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "DeleteOnTerminate"
16:44:32            + namespace = "aws:elasticbeanstalk:cloudwatch:logs"
16:44:32            + value     = "true"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "DeploymentPolicy"
16:44:32            + namespace = "aws:elasticbeanstalk:command"
16:44:32            + value     = "AllAtOnce"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "ELBSubnets"
16:44:32            + namespace = "aws:ec2:vpc"
16:44:32            + value     = "subnet-"*********", subnet-"*********""
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "HISTORY_ENABLED"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "true"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "HealthCheckPath"
16:44:32            + namespace = "aws:elasticbeanstalk:environment:process:default"
16:44:32            + value     = "/server/health-check"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "IamInstanceProfile"
16:44:32            + namespace = "aws:autoscaling:launchconfiguration"
16:44:32            + value     = ""*********""
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "IdleTimeout"
16:44:32            + namespace = "aws:elbv2:loadbalancer"
16:44:32            + value     = "600"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "InstanceType"
16:44:32            + namespace = "aws:autoscaling:launchconfiguration"
16:44:32            + value     = "t4g.medium"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "LOG_LEVEL"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "INFO"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "ListenerEnabled"
16:44:32            + namespace = "aws:elbv2:listener:default"
16:44:32            + value     = "false"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "LoadBalancerType"
16:44:32            + namespace = "aws:elasticbeanstalk:environment"
16:44:32            + value     = "application"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "ManagedActionsEnabled"
16:44:32            + namespace = "aws:elasticbeanstalk:managedactions"
16:44:32            + value     = "true"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "MaxSize"
16:44:32            + namespace = "aws:autoscaling:asg"
16:44:32            + value     = "5"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "MinSize"
16:44:32            + namespace = "aws:autoscaling:asg"
16:44:32            + value     = "1"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "PreferredStartTime"
16:44:32            + namespace = "aws:elasticbeanstalk:managedactions"
16:44:32            + value     = "SUN:09:00"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "Protocol"
16:44:32            + namespace = "aws:elbv2:listener:443"
16:44:32            + value     = "HTTPS"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "RetentionInDays"
16:44:32            + namespace = "aws:elasticbeanstalk:cloudwatch:logs"
16:44:32            + value     = "90"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "RollingUpdateEnabled"
16:44:32            + namespace = "aws:autoscaling:updatepolicy:rollingupdate"
16:44:32            + value     = "false"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "RollingUpdateType"
16:44:32            + namespace = "aws:autoscaling:updatepolicy:rollingupdate"
16:44:32            + value     = "Health"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "SERVER_PORT"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "5000"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "SSLCertificateArns"
16:44:32            + namespace = "aws:elbv2:listener:443"
16:44:32            + value     = "arn:aws:acm:us-east-1:"*********":certificate/"*********""
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "ServiceRole"
16:44:32            + namespace = "aws:elasticbeanstalk:environment"
16:44:32            + value     = "arn:aws:iam::"*********":role/"*********""
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "StreamLogs"
16:44:32            + namespace = "aws:elasticbeanstalk:cloudwatch:logs"
16:44:32            + value     = "true"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "Subnets"
16:44:32            + namespace = "aws:ec2:vpc"
16:44:32            + value     = "subnet-"*********", subnet-"*********""
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "SystemType"
16:44:32            + namespace = "aws:elasticbeanstalk:healthreporting:system"
16:44:32            + value     = "enhanced"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "UpdateLevel"
16:44:32            + namespace = "aws:elasticbeanstalk:managedactions:platformupdate"
16:44:32            + value     = "minor"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "VPCId"
16:44:32            + namespace = "aws:ec2:vpc"
16:44:32            + value     = "vpc-0cda2795ba1b56d4b"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "accountType"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "dev"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "byob_replication_role_arn"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "arn:aws:iam::"*********":role/"*********""
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "environmentName"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "dev05"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "fpLogLevel"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "INFO"
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "securityGroups"
16:44:32            + namespace = "aws:autoscaling:launchconfiguration"
16:44:32            + value     = "sg-"*********""
16:44:32          }
16:44:32        + setting {
16:44:32            + name      = "spring_profiles_active"
16:44:32            + namespace = "aws:elasticbeanstalk:application:environment"
16:44:32            + value     = "dev"
16:44:32          }
16:44:32      }

Success - plan output

16:30:17    # module.deviceStoreModule.aws_elastic_beanstalk_environment.neoAppEnvironment will be updated in-place
16:30:17    ~ resource "aws_elastic_beanstalk_environment" "neoAppEnvironment" {
16:30:17          id                     = "e-""*************"""
16:30:17          name                   = """*************"""
16:30:17          tags                   = {
16:30:17              "fp-application-version"     = "1.0.0"
16:30:17              "fp-component"               = "ElasticBeanstalk"
16:30:17              "fp-cost-centre"             = "*************"
16:30:17              "fp-department-code"         = ""*************""
16:30:17              "fp-deployment-tool"         = "terraform"
16:30:17              "fp-deployment-tool-version" = "v1.5.2"
16:30:17              "fp-environment"             = "dev"
16:30:17              "fp-jira-project"            = ""*************""
16:30:17              "fp-product"                 = ""*************""
16:30:17              "fp-team"                    = ""*************""
16:30:17              "fp-technical-owner"         = ""*************""
16:30:17              "name"                       = ""*************""
16:30:17              "workspace"                  = ""*************""
16:30:17          }
16:30:17        ~ version_label          = "2023_07_23T13_21_36Z_beanstalk_configuration.zip" -> (known after apply)
16:30:17          # (16 unchanged attributes hidden)
16:30:17  
16:30:17        - setting {
16:30:17            - name      = "AUDIT_LOG_ENABLE" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "true" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "AWS_REGION" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "us-east-1" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "BatchSize" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:command" -> null
16:30:17            - value     = "1" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "BatchSizeType" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:command" -> null
16:30:17            - value     = "Fixed" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "ConfigDocument" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:healthreporting:system" -> null
16:30:17            - value     = jsonencode(
16:30:17                  {
16:30:17                    - CloudWatchMetrics = {
16:30:17                        - Environment = {
16:30:17                            - ApplicationLatencyP99    = 60
16:30:17                            - ApplicationRequests4xx   = 60
16:30:17                            - ApplicationRequests5xx   = 60
16:30:17                            - ApplicationRequestsTotal = 60
16:30:17                          }
16:30:17                        - Instance    = {
16:30:17                            - ApplicationLatencyP99    = 60
16:30:17                            - ApplicationRequests4xx   = 60
16:30:17                            - ApplicationRequests5xx   = 60
16:30:17                            - ApplicationRequestsTotal = 60
16:30:17                            - InstanceHealth           = 60
16:30:17                            - LoadAverage1min          = 60
16:30:17                            - RootFilesystemUtil       = 60
16:30:17                          }
16:30:17                      }
16:30:17                    - Version           = 1
16:30:17                  }
16:30:17              ) -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "DeleteOnTerminate" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:cloudwatch:logs" -> null
16:30:17            - value     = "true" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "DeploymentPolicy" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:command" -> null
16:30:17            - value     = "AllAtOnce" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "ELBSubnets" -> null
16:30:17            - namespace = "aws:ec2:vpc" -> null
16:30:17            - value     = " subnet-"*************",subnet-"*************"" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "HISTORY_ENABLED" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "true" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "HealthCheckPath" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:environment:process:default" -> null
16:30:17            - value     = "/server/health-check" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "IamInstanceProfile" -> null
16:30:17            - namespace = "aws:autoscaling:launchconfiguration" -> null
16:30:17            - value     = ""*************"" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "IdleTimeout" -> null
16:30:17            - namespace = "aws:elbv2:loadbalancer" -> null
16:30:17            - value     = "600" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "InstanceType" -> null
16:30:17            - namespace = "aws:autoscaling:launchconfiguration" -> null
16:30:17            - value     = "t4g.medium" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "LOG_LEVEL" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "INFO" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "ListenerEnabled" -> null
16:30:17            - namespace = "aws:elbv2:listener:default" -> null
16:30:17            - value     = "false" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "LoadBalancerType" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:environment" -> null
16:30:17            - value     = "application" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "ManagedActionsEnabled" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:managedactions" -> null
16:30:17            - value     = "true" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "MaxSize" -> null
16:30:17            - namespace = "aws:autoscaling:asg" -> null
16:30:17            - value     = "5" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "MinSize" -> null
16:30:17            - namespace = "aws:autoscaling:asg" -> null
16:30:17            - value     = "1" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "PreferredStartTime" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:managedactions" -> null
16:30:17            - value     = "SUN:09:00" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "Protocol" -> null
16:30:17            - namespace = "aws:elbv2:listener:443" -> null
16:30:17            - value     = "HTTPS" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "RetentionInDays" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:cloudwatch:logs" -> null
16:30:17            - value     = "90" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "RollingUpdateEnabled" -> null
16:30:17            - namespace = "aws:autoscaling:updatepolicy:rollingupdate" -> null
16:30:17            - value     = "false" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "RollingUpdateType" -> null
16:30:17            - namespace = "aws:autoscaling:updatepolicy:rollingupdate" -> null
16:30:17            - value     = "Health" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "SERVER_PORT" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "5000" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "SSLCertificateArns" -> null
16:30:17            - namespace = "aws:elbv2:listener:443" -> null
16:30:17            - value     = "arn:aws:acm:us-east-1:"*************":certificate/"*************"" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "ServiceRole" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:environment" -> null
16:30:17            - value     = "arn:aws:iam::"*************":role/"*************"" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "StreamLogs" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:cloudwatch:logs" -> null
16:30:17            - value     = "true" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "Subnets" -> null
16:30:17            - namespace = "aws:ec2:vpc" -> null
16:30:17            - value     = "subnet-"*************",subnet-"*************"" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "SystemType" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:healthreporting:system" -> null
16:30:17            - value     = "enhanced" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "UpdateLevel" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:managedactions:platformupdate" -> null
16:30:17            - value     = "minor" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "VPCId" -> null
16:30:17            - namespace = "aws:ec2:vpc" -> null
16:30:17            - value     = "vpc-"*************"" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "accountType" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "dev" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "byob_replication_role_arn" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "arn:aws:iam::"*************":role/"*************"" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "environmentName" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "dev05" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "fpLogLevel" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "INFO" -> null
16:30:17          }
16:30:17        - setting {
16:30:17            - name      = "spring_profiles_active" -> null
16:30:17            - namespace = "aws:elasticbeanstalk:application:environment" -> null
16:30:17            - value     = "dev" -> null
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "AUDIT_LOG_ENABLE"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "true"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "AWS_REGION"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "us-east-1"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "BatchSize"
16:30:17            + namespace = "aws:elasticbeanstalk:command"
16:30:17            + value     = "1"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "BatchSizeType"
16:30:17            + namespace = "aws:elasticbeanstalk:command"
16:30:17            + value     = "Fixed"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "ConfigDocument"
16:30:17            + namespace = "aws:elasticbeanstalk:healthreporting:system"
16:30:17            + value     = jsonencode(
16:30:17                  {
16:30:17                    + CloudWatchMetrics = {
16:30:17                        + Environment = {
16:30:17                            + ApplicationLatencyP99    = 60
16:30:17                            + ApplicationRequests4xx   = 60
16:30:17                            + ApplicationRequests5xx   = 60
16:30:17                            + ApplicationRequestsTotal = 60
16:30:17                          }
16:30:17                        + Instance    = {
16:30:17                            + ApplicationLatencyP99    = 60
16:30:17                            + ApplicationRequests4xx   = 60
16:30:17                            + ApplicationRequests5xx   = 60
16:30:17                            + ApplicationRequestsTotal = 60
16:30:17                            + InstanceHealth           = 60
16:30:17                            + LoadAverage1min          = 60
16:30:17                            + RootFilesystemUtil       = 60
16:30:17                          }
16:30:17                      }
16:30:17                    + Version           = 1
16:30:17                  }
16:30:17              )
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "DeleteOnTerminate"
16:30:17            + namespace = "aws:elasticbeanstalk:cloudwatch:logs"
16:30:17            + value     = "true"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "DeploymentPolicy"
16:30:17            + namespace = "aws:elasticbeanstalk:command"
16:30:17            + value     = "AllAtOnce"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "ELBSubnets"
16:30:17            + namespace = "aws:ec2:vpc"
16:30:17            + value     = "subnet-"*************", subnet-"*************""
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "HISTORY_ENABLED"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "true"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "HealthCheckPath"
16:30:17            + namespace = "aws:elasticbeanstalk:environment:process:default"
16:30:17            + value     = "/server/health-check"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "IamInstanceProfile"
16:30:17            + namespace = "aws:autoscaling:launchconfiguration"
16:30:17            + value     = ""*************""
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "IdleTimeout"
16:30:17            + namespace = "aws:elbv2:loadbalancer"
16:30:17            + value     = "600"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "InstanceType"
16:30:17            + namespace = "aws:autoscaling:launchconfiguration"
16:30:17            + value     = "t4g.medium"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "LOG_LEVEL"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "INFO"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "ListenerEnabled"
16:30:17            + namespace = "aws:elbv2:listener:default"
16:30:17            + value     = "false"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "LoadBalancerType"
16:30:17            + namespace = "aws:elasticbeanstalk:environment"
16:30:17            + value     = "application"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "ManagedActionsEnabled"
16:30:17            + namespace = "aws:elasticbeanstalk:managedactions"
16:30:17            + value     = "true"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "MaxSize"
16:30:17            + namespace = "aws:autoscaling:asg"
16:30:17            + value     = "5"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "MinSize"
16:30:17            + namespace = "aws:autoscaling:asg"
16:30:17            + value     = "1"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "PreferredStartTime"
16:30:17            + namespace = "aws:elasticbeanstalk:managedactions"
16:30:17            + value     = "SUN:09:00"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "Protocol"
16:30:17            + namespace = "aws:elbv2:listener:443"
16:30:17            + value     = "HTTPS"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "RetentionInDays"
16:30:17            + namespace = "aws:elasticbeanstalk:cloudwatch:logs"
16:30:17            + value     = "90"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "RollingUpdateEnabled"
16:30:17            + namespace = "aws:autoscaling:updatepolicy:rollingupdate"
16:30:17            + value     = "false"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "RollingUpdateType"
16:30:17            + namespace = "aws:autoscaling:updatepolicy:rollingupdate"
16:30:17            + value     = "Health"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "SERVER_PORT"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "5000"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "SSLCertificateArns"
16:30:17            + namespace = "aws:elbv2:listener:443"
16:30:17            + value     = "arn:aws:acm:us-east-1:"*************":certificate/"*************""
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "ServiceRole"
16:30:17            + namespace = "aws:elasticbeanstalk:environment"
16:30:17            + value     = "arn:aws:iam::"*************":role/"*************""
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "StreamLogs"
16:30:17            + namespace = "aws:elasticbeanstalk:cloudwatch:logs"
16:30:17            + value     = "true"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "Subnets"
16:30:17            + namespace = "aws:ec2:vpc"
16:30:17            + value     = "subnet-"*************", subnet-"*************""
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "SystemType"
16:30:17            + namespace = "aws:elasticbeanstalk:healthreporting:system"
16:30:17            + value     = "enhanced"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "UpdateLevel"
16:30:17            + namespace = "aws:elasticbeanstalk:managedactions:platformupdate"
16:30:17            + value     = "minor"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "VPCId"
16:30:17            + namespace = "aws:ec2:vpc"
16:30:17            + value     = "vpc-0cda2795ba1b56d4b"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "accountType"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "dev"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "byob_replication_role_arn"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "arn:aws:iam::"*************":role/"*************""
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "environmentName"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "dev05"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "fpLogLevel"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "INFO"
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "securityGroups"
16:30:17            + namespace = "aws:autoscaling:launchconfiguration"
16:30:17            + value     = "sg-"*************""
16:30:17          }
16:30:17        + setting {
16:30:17            + name      = "spring_profiles_active"
16:30:17            + namespace = "aws:elasticbeanstalk:application:environment"
16:30:17            + value     = "dev"
16:30:17          }
16:30:17      }
@Omerlustig Omerlustig added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jun 29, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@justinretzolk
Copy link
Member

Hey @Omerlustig 👋 Thank you for taking the time to raise this! So that we have the necessary information in order to reproduce this, can you supply a sample Terraform configuration that can be used to reproduce this bug, as well as debug logs (redacted as needed)?

@justinretzolk justinretzolk added waiting-response Maintainers are waiting on response from community or contributor. service/elasticbeanstalk Issues and PRs that pertain to the elasticbeanstalk service. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 7, 2023
@github-actions github-actions bot removed the waiting-response Maintainers are waiting on response from community or contributor. label Jul 7, 2023
@Omerlustig
Copy link
Author

any updates? do you need more details?

@justinretzolk
Copy link
Member

Hey @Omerlustig 👋 Thank you for checking in on this! Unfortunately I can't provide an ETA on when this will be looked into due to the potential of shifting priorities. We prioritize by count of 👍 reactions and a few other things (more information on our prioritization guide if you're interested).

Based on a quick look, I don't believe that there's any additional details that we need at this time, but once this gets prioritized, whoever is working on it may ask for additional information based on what they find.

@romarickb
Copy link

Hi @Omerlustig did you figure out a workaround to be able to deploy when this issue happen ?
Thanks

Copy link

github-actions bot commented Mar 7, 2024

This functionality has been released in v5.40.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

github-actions bot commented Apr 7, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/elasticbeanstalk Issues and PRs that pertain to the elasticbeanstalk service.
Projects
None yet
3 participants