Skip to content

use-existing-application-version-if-available doesn't seem to be working #70

Description

@swt2c

I'm using aws-actions/aws-elasticbeanstalk-deploy@v1.0.4 and with use-existing-application-version-if-available: true it seems to be failing when it tries to re-create the same application version.

Run aws-actions/aws-elasticbeanstalk-deploy@v1.0.4
  with:
    aws-region: us-west-2
    application-name: ***
    environment-name: ***
    create-environment-if-not-exists: true
    create-application-if-not-exists: true
    wait-for-deployment: true
    wait-for-environment-recovery: true
    deployment-timeout: 900
    max-retries: 2
    retry-delay: 5
    use-existing-application-version-if-available: true
    create-s3-bucket-if-not-exists: true
  env:
    AWS_DEFAULT_REGION: us-west-2
    AWS_REGION: us-west-2
    AWS_ACCESS_KEY_ID: ***
    AWS_SECRET_ACCESS_KEY: ***
    AWS_SESSION_TOKEN: ***
🚀 Starting Elastic Beanstalk deployment...
📋 Validating inputs
  Application: ***
  Environment: ***
  Version: 338a553208a11c0722b0d345500e08f6ee980f49
  Region: us-west-2
🔐 Getting AWS account information
  ✅ AWS account verified
📦 Creating deployment package
  📦 Creating deployment package: deploy-338a553208a11c0722b0d345500e08f6ee980f49.zip
  📄 Using ignore patterns from .ebignore
☁️  Uploading to S3
  🪣 Checking if S3 bucket exists
  ✅ S3 bucket exists
  ☁️  Uploading deployment package to S3
     File size: 3.39 MB
  ✅ Upload complete
📝 Creating application version 338a553208a11c0722b0d345500e08f6ee980f49
  📝 Creating application version: 338a553208a11c0722b0d345500e08f6ee980f49
  Error: ❌ Deployment failed after 3s: Application Version 338a553208a11c0722b0d345500e08f6ee980f49 already exists.
  Error: Deployment failed: Application Version 338a553208a11c0722b0d345500e08f6ee980f49 already exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions