How can I specify the target directory when use bitbucket pipline with aws openID connect?
is bitbucket-pipelines.yml has a supporting target directive to move the code in the deployed EC2 instances?
If you want to deploy directly to the EC2 instance you need to do it via SSH. You could try using EC2 Instance Connect authenticating via OIDC - not sure if this supported. This way you don't need manage the SSH keys.
There are different options to deploy to EC2, but I believe the canonical and likely easiest way to deploy to EC2 is via CodeDeploy. There's a pipe for that as well. However, most of these options involve uploading code to S3 rather than uploading it directly to EC2.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.