Skip to content

Conversation

@emsmccoy
Copy link

AWS Deployment for Spring Boot Docker Application To-Do List

AWS Account Setup and Configuration

  • Create an AWS Account

    • Visit aws.amazon.com and click "Create an AWS Account"
    • Enter email address, account name, and password
    • Verify email address
    • Add contact information
    • Add payment method
    • Select Basic support plan
  • Set Up AWS Budget and Billing Alerts

    • Navigate to AWS Budgets in the AWS Management Console
    • Create a monthly fixed budget
    • Configure alert for 80% of budgeted amount
    • Set up action to apply IAM policy restricting resource creation when budget is exceeded

AWS Services Configuration

  • Set up Amazon Elastic Container Registry (ECR)

    • Open Amazon ECR console
    • Create repository named "spring-boot-app"
    • Configure repository settings
  • Configure Amazon Elastic Container Service (ECS)

    • Open Amazon ECS console
    • Create cluster with "Networking only" option for Fargate compatibility
    • Name and create the cluster
  • Set up AWS Fargate

    • Create new task definition in ECS console
    • Choose Fargate as launch type
    • Configure task size (CPU and memory)
    • Add container details using ECR image

Jenkins Pipeline Update

  • Modify Jenkins pipeline for AWS deployment
    • Add environment variables for AWS configuration
    • Include stage for pushing to ECR
    • Add stage for deploying to ECS

Application Deployment

  • Run Jenkins pipeline to build and push Docker image to ECR
  • Verify pipeline triggers new deployment in ECS using Fargate

Additional Configuration

  • Set up proper IAM roles and permissions for Jenkins-AWS interaction
  • Configure network settings in ECS task definition
  • Set up Application Load Balancer if needed

Documentation and Submission

  • Fork repository or create new one on GitHub
  • Create branch MF06-PRA06-YourNameAndSurname
  • Implement required changes and add configuration files
  • Commit with clear messages
  • Push branch and create pull request MF06-PRA06-YourNameAndSurname-AWSDeployment
  • Create PRA06_ANSWER folder for answer, docs, and images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant