Need to deploy my code to amazon EBS s3 bucket


#1

- aws elasticbeanstalk create-application-version --application-name MyApp --version-label v1 --description MyAppv1 --source-bundle S3Bucket=“my-bucket”,S3Key=“sample.war” --auto-create-application

Iam trying to uploads my zip file in to s3bucket by using above code but it throwing an error
You must specify a region. You can also configure your region by running “aws configure”.
But in config.yml file i already specified the region.
Please can u help me
THanks in advance


#2

You can specify a region to use either as part of your AWS config file, or as part of the aws beanstalk command - for example you could change the command to:

aws --region="eu-west-1" elasticbeanstalk create-application-version --application-name MyApp --version-label v1 --description MyAppv1 --source-bundle S3Bucket="my-bucket",S3Key="sample.war" --auto-create-application

Which would use the “eu-west-1” region.


#3