AWS

How do we deploy our application in AWS?

  • We use Jenkins or docker to deploy our application in AWS. Using Jenkins docker pipeline We create docker images.We deploy images in ECS or EC2.

How can we enhance availability of production during deployment in server and database?

  • Availability comes from, how will you apply caching mechanism.
  • We should provide hundred percent availability like when moving code to production, there should be not be production downtime.
    • We can do a blueprint deployment Of existing instance, version and route traffic to it, and then create a new plans and update it once it is all set.
  • Availability in RDS on AWS Can be done using read, replica and focus traffic on that by making them available in availability zone.

What is cloud front?What is edge location?

  • Amazon cloud front is a content delivery network service that helps to distribute content quickly and reliably. It uses a global network of servers called as edge locations,To cache content Closer to the users Which improves Speed and reliability.When a user requests Content,The request is routed to the edge location with lowest latency to deliver the content with the best performance.

I have two accounts in AWS.I want to access S3 bucket in account 1 from another account.How to access?

  • To grant access to Amazon S3 buckets Across AWS accounts, we can use your account IAM roles or bucket policies.
    • Cross account role
      • In the source account, create an IAM role for access to the Destination bucket.
      • Grant the role permission for S3 operations.
      • In the Destination account, grant an IAM role or use Permission to assume the role Created in the source account.
    • Bucket policy
      • In the source account, create a policy.
      • Attached policy to the user or role in destination Account that will be used to access the bucket.

What is VPC? What is Internet gateway(IGW)?What is NAT(Network Address Translation) Gateway?

  • VPC stands for virtual private cloud, a virtual network that is hosted within a public cloud.They provide a level of isolation between different organisations that use resources while still offering the scalability and convenience of public cloud computing.
  • IGW Allows both inbound and outbound Internet access. While NAT gateway only allows outbound access.
    • Instances with public IP’S can access Internet with IGW. NAT allow instances with private IP to access Internet.
  • IGW’s are free.NAT incur charges Based on creation and usage.
  • Per VPC Only one IGW is needed. We need one NAT gateway per availability zone.
  • NAT Gateway can be deployed to single availability zone, so it’s best to configure routing to use the NAT gateway in same Availability zone to ensure high availability.

What is the flow of Terraform? What are provisioners in Terraform ? What is a provider in terraform?

  • Terraform’s workflow is made up of five key steps
    • Write
      • Create changes to the code.
    • Init
      • Initialise the code to download requirements
    • Plan
      • Review the changes and choose whether to accept them
    • Apply
      • Accept changes and apply them on infrastructure.
    • Destroy
      • Destroy all created infrastructure.
  • Providers in terraform are used to authenticate with cloud platforms, services, or other tools, allowing users to create, modify, and delete resources declared in terraform configurations. Providers are discovered dynamically as needed.
  • Provisioners are used to copy files Or execute local or remote operations, such as scripts or shell commands during resource creation or deletion. They can be used to bootstrap a resource, Clean up before destroy, Run configuration management and more. There are two types of provisioners, local, and remote.

Comments

Popular posts from this blog

Setup Flyway,Postgres in Jenkins using Docker

Docker

Jenkins