在弹性 beantalk 中使用来自 s3 存储桶的 jar 文件
use jar file from s3 bucket in elastic beanstalk
我正在尝试创建一个 beantalk 应用程序。它提供上传文件或选择 s3 存储桶。
我已经上传了一些 jar 文件到 s3 存储桶,我想选择存储桶而不是上传它们。
我这样做的原因是下一步我想用 terraform 来做,但我在 terraform 中没有找到任何配置来直接上传文件。
我现在的问题是 beantalk 一直报错。
Source code is required.Source code URL must be a valid S3 location.
我怎样才能完成这项工作?或者有没有其他方法可以稍后使用 terraform 来完成。我不明白如何通过 AWS 提供商获取实际代码。 https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elastic_beanstalk_application
您使用 aws_elastic_beanstalk_application_version. Prior to creating that resource you have to upload your jar to s3 using aws_s3_bucket_object 执行此操作。
我正在尝试创建一个 beantalk 应用程序。它提供上传文件或选择 s3 存储桶。
我已经上传了一些 jar 文件到 s3 存储桶,我想选择存储桶而不是上传它们。
我这样做的原因是下一步我想用 terraform 来做,但我在 terraform 中没有找到任何配置来直接上传文件。
我现在的问题是 beantalk 一直报错。
Source code is required.Source code URL must be a valid S3 location.
我怎样才能完成这项工作?或者有没有其他方法可以稍后使用 terraform 来完成。我不明白如何通过 AWS 提供商获取实际代码。 https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elastic_beanstalk_application
您使用 aws_elastic_beanstalk_application_version. Prior to creating that resource you have to upload your jar to s3 using aws_s3_bucket_object 执行此操作。