Skip to content

Commit f34abe7

Browse files
Update buildspec.yml
1 parent b7861d3 commit f34abe7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

buildspec.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ phases:
3030
# - export AWS_DEFAULT_REGION=us-west-2
3131
- aws ssm get-parameter --name $ssm_name --query "Parameter.Value" --output text > private_key.pem
3232
- chmod 600 private_key.pem
33-
- ssh -i private_key.pem ec2-user@13.126.207.243 "sudo chmod -R +w /opt/tomcat/"
33+
- ssh -i private_key.pem ec2-user@13.126.207.243
34+
- sudo su -
3435
- scp -o StrictHostKeyChecking=no -i private_key.pem /codebuild/output/src*/src/webapp/target/webapp.war ec2-user@13.126.207.243:/opt/tomcat/
3536
# - aws s3 cp /codebuild/output/src*/src/webapp/target/webapp.war s3://crossaccount-test-matson/artifacts/

0 commit comments

Comments
 (0)