Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 2.29 KB

README.md

File metadata and controls

56 lines (42 loc) · 2.29 KB

Setting up AWS account

We will be working with an AWS Lightsail instance.

Things you need to do:

Setting your local environment and getting remote machinery ready

  1. Change your working directory to grimoirelab-infra-provision/aws:
cd grimoirelab-infra-provision/aws
  1. Inside grimoirelab-infra-provision/aws create a file called terraform.tfvars with the following format and content:
AWSAccessKeyId = "<YOUR_AWS_ACCESS_KEY_ID>"
AWSSecretKey = "<YOUR_AWS_SECRET_KEY>"
  1. Initialize Terraform:
terraform init
  1. Let's create your AWS Ligthsail instance. It will read both your terraform.tfvars and provision.tf files.
terraform apply -var name=<GIVE_IT_A_NAME>

During the process, Terraform might ask for confirmation to apply the changes you have requested. If you want to say yes to everything, just run:

terraform apply -auto-approve -var name=<GIVE_IT_A_NAME>

At the end of the process, Terraform outputs the public IP to access to the machine you have created. Something like:

Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

Outputs:

public_ip = 157.245.85.159

Note: It seems you cannot open 5601 port needed by Kibana using Terraform (terraform-providers/terraform-provider-aws/issues/700), so you'll need to open it using your AWS Lightsail instances web interface:

Lightsail Firewall Management screenshot

You are ready for next steps