Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.26 KB

README.md

File metadata and controls

24 lines (21 loc) · 1.26 KB

Terraform-AWS-Infrastructure as Code

Repository for course CSYE 6225 Network Structures and Cloud Computing offered by Northeastern University and taken in Fall 2024. This repository deals with using Terraform as infrastructure as Code platform and sets up Virtual Private Cloud (VPC) on AWS.

How to run the application

  • Install AWS cli and Terraform
  • Run below command to set up AWS credentials on local device
    • aws configure --profile= YOUR_PROFILE_NAME
  • Navigate to project repository on command line and run below Terraform commands
    • Initialize the repository: terraform init
    • Perform validation checks: terraform validate
    • Create execution plan: terraform plan
    • Apply changes mentioned in execution plan: terraform apply
    • Destroy existing vpc: terraform destroy

Command to Import Demo Certificate

  • Generic Command
    • aws acm import-certificate
      --certificate file://path/to/certificate.pem
      --private-key file://path/to/private_key.pem
      --certificate-chain file://path/to/certificate_chain.pem
      --region

Sample cmd to import demo certificate

  • aws acm import-certificate --certificate fileb://certificate.pem --private-key fileb://private_Key.pem --certificate-chain fileb://certificate_chain.pem --region us-east-1