简体   繁体   English

如何为 AWS Lightsail 设置 bitbucket 管道

[英]How to setup bitbucket pipelines for AWS Lightsail

I have a project with I need to setup bitbucket pipelines for AWS Lightsail.我有一个项目,我需要为 AWS Lightsail 设置 bitbucket 管道。

Is there any documentation regarding on bitbucket pipeline to deploy to AWS lightsail?是否有任何关于 bitbucket 管道部署到 AWS lightsail 的文档? I've been looking for this on how to configure but haven't found one.我一直在寻找有关如何配置的信息,但没有找到。

Doc is available for EC2 which is https://medium.com/technext/bitbucket-to-aws-ec2-continuous-deployment-pipeline-using-aws-code-deploy-for-php-application-e39004243cd9文档可用于 EC2,即https://medium.com/technext/bitbucket-to-aws-ec2-continuous-deployment-pipeline-using-aws-code-deploy-for-php-application-e39004243cd9

But not for lightsail.但不适用于光帆。

Please help请帮忙

This process is similar to using GitHub and I've written a detail step by step guide on my weblog .这个过程类似于使用 GitHub,我已经在我的博客上写了详细的分步指南。 The only difference is when you are in CodePipeline, the source you select isn't gonna be GitHub but Bitbucket (Check available sources here ).唯一的区别是当您在 CodePipeline 中时,您 select 的来源不会是 GitHub 而是 Bitbucket( 在此处检查可用来源)。

Here's the steps you'll need to go through这是您通过 go 所需的步骤

  1. Create a service role.创建服务角色。

  2. Create an S3 bucket.创建 S3 存储桶。

  3. Create an IAM policy.创建 IAM 策略。

  4. Create an IAM user.创建 IAM 用户。

  5. Create a Lightsail instance and install the CodeDeploy agent.创建一个 Lightsail 实例并安装 CodeDeploy 代理。

  6. Verify the CodeDeploy agent.验证 CodeDeploy 代理。

  7. Setup the application in CodeDeploy.在 CodeDeploy 中设置应用程序。

  8. Fork the Bitbucket Repo (this can be optional considering you already have the repo)分叉 Bitbucket 回购协议(考虑到您已经拥有回购协议,这可以是可选的)

  9. Setup CodePipeline.设置代码管道。

  10. Test and Update the Application.测试和更新应用程序。

In this particular case the repo I've used already had its appspec.yml .在这种特殊情况下,我使用的回购协议已经有了它的appspec.yml You'll need to have one as well but the Medium article you're linking to has that information.您还需要有一个,但是您链接到的 Medium 文章包含该信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM