```def create_elastic_beanstalk_with_ecs(conn: str...
# general
a
Copy code
def create_elastic_beanstalk_with_ecs(conn: str):
    """Creating Elastic Beanstalk"""
    # Create Elastic Beanstalk Application

    eb_application = aws.elasticbeanstalk.Application(
        "django-app", name="django-app", description="A Django test application"
    )

    # Create Elastic Beanstalk environment
    eb_environment = aws.elasticbeanstalk.Environment(
        "dev-env",
        name="dev-env",
        application=eb_application.name,
        solution_stack_name="64bit Amazon Linux 2 v3.2.13 running ECS",
        settings=[
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:elasticbeanstalk:environment",
                name="EnvironmentType",
                value="SingleInstance",
            ),
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:autoscaling:launchconfiguration",
                name="InstanceType",
                value="t2.micro",
            ),
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:autoscaling:asg",
                name="MinSize",
                value="1",
            ),
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:autoscaling:asg",
                name="MaxSize",
                value="4",
            ),
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:autoscaling:launchconfiguration",
                name="IamInstanceProfile",
                value=instance_profile.arn,
            ),
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:ec2:vpc",
                name="VPCId",
                value=default_vpc.id,
            ),
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:ec2:vpc",
                name="Subnets",
                value=subnet_ids,
            ),
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:elasticbeanstalk:environment",
                name="EnvironmentType",
                value="LoadBalanced",
            ),
            aws.elasticbeanstalk.EnvironmentSettingArgs(
                namespace="aws:elasticbeanstalk:application:environment",
                name="CONNECTION_STRING",
                value=conn,
            ),
        ],
    )

    pulumi.export("application_url", eb_environment.endpoint_url)
    pulumi.export("envId", eb_environment.id)
    pulumi.export("appName", eb_application.name)
Hello guys, I am trying to create an ecs env in elasticbeantalk but when I run pulumi up I get this error: error: 1 error occurred: * updating urnpulumidev:elasticbeanstalk infraawselasticbeanstalk/environmentEnvironmentdev env 1 error occurred: * waiting for Elastic Beanstalk Environment (e-qmx753q3sv) update: couldn't find resource (21 retries)