Perform Deployment for Testing

Perform Deployment for Testing

  1. In the productsservice project, select the Gradle icon and choose jar to package the project.

    Architect

  2. Next, create a new image. Open the DockerFile and select Edit dockerfile.

    Architect

  3. In the Edit Dockerfile interface, change the image tag to 1.1.0 to create a new Docker image, then select Run.

    Architect

  4. Push the newly created image to the ECR Repository by opening AWS Toolkit, selecting ECR, then choosing productsservice. Finally, right-click and select Push to Repository.

    Architect

  5. In the Push to ECR popup, select the Local image as productsservice:1.0.0 and set the Remote Tag to 1.1.0, then click Push.

    Architect

  6. Verify the pushed image on the ECR interface.

    Architect

  7. Open the FCJ2024_CDK project. Then open the file ProductsServiceStack and update the tag in the fargateTaskDefinition.addContainer section to 1.1.0.

    Architect

  8. Next, use cdk deploy --all --require-approval never to deploy the changes.

    Architect

  9. Check if the new task definition is running by navigating to the ECS interface, selecting the Cluster, then selecting ECommerce, and finally selecting task.

    Architect

  10. Access the DynamoDB interface to verify if the product table has been created.

    Architect