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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.