CI / CD Java application to Elastic Beanstalk with Code Pipeline This is a summary of the errors that can occur in and how to deal with them.
Let's check the settings again. [Code Pipeline x Elastic Beanstalk] CI / CD Java application to Elastic Beanstalk with Code Pipeline Part 2 Review "[2] Additional settings" in "3. Creating an Elastic Beanstalk environment" and check if there are any omissions in the settings.
Let's check the permission settings again. [Code Pipeline x Elastic Beanstalk] CI / CD Java application to Elastic Beanstalk with Code Pipeline Part 2 Review the areas (4) to (9) in "[1] Connection settings in RDS" in "4. Database settings" and check for any omissions.
Changing the input artifact from Build Artifact to Source Artifact will fix it. Follow the procedure below to change it.
① In the pipeline, click "Edit".
② Click "Edit Stage" in the "Deploy" column.
③ Click the edit mark (?).
④ Change "Input Artifact" to "Source Artifact" (①) and click "Finish" (②).
⑤ Click "Save".
⑥ Click "Save".
This error occurs because you do not have access to CloudWatch Logs. This can be resolved by granting the "CloudWatchLogsFullAccess" policy to the role created for CodePipeline.
The procedure is as follows.
① Find and click "IAM" on the management console.
② "Role" (①)> Search for the target CodePipeline role (②) and click the role name (③).
③ Click "Attach policy"
④ Search for "CloudWatch Logs Full Access" (1), check it (2), and click "Attach Policy" (3).
As I wrote in the main part, I made an error 3 days in the 1- [3]-(5) gradlew permission change in the main part, and 3 times in the deployment stage of 5- [1]-(10). I stumbled and almost broke my heart many times. Even if an error occurs, don't be discouraged, but rather, let's enjoy it with the feeling of how to solve it!
Recommended Posts