What is needed in order to use this repo:
- A computer/vm with Linux or Linux Subsystem installed on windows
- Terraform installed on your OS
- local clone of the repository available on your device
- aws cli installed and configured - How to: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html You need to provide AWS Access Key ID and Secret Access Key - here's how to generate this https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html
- AWS EC2 key pair generated and private key stored on your drive - here's how https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html. Default path to the private key is "~/.ssh/appsilon_homework.pem". You can change it (along with other variables declared in variables.tf) by providing the variable values in other ways described in this article: https://www.terraform.io/language/values/variables
Change the working directory to the location of local copy of this repository. Run "terraform init" to initialize working directory after cloning from git repo. Run terraform plan. Make sure the final configuration is matching your expectations. Run terraform apply to create the solution on AWS platform. Run terraform output to get the url of rstudio-connect. Run terraform destroy when you want to get rid of the solution.
Name | Version |
---|---|
aws | ~> 4.17.1 |
Name | Version |
---|---|
aws | 4.17.1 |
No modules.
Name | Type |
---|---|
aws_budgets_budget.my_budget | resource |
aws_instance.appsilon_homework | resource |
aws_internet_gateway.appsilon_gw | resource |
aws_route.appsilon_route | resource |
aws_security_group.appsilon_homework | resource |
aws_subnet.appsilon_subnet | resource |
aws_vpc.appsilon_vpc | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
INSTANCE_USERNAME | Username used to connect to the instance | string |
"ec2-user" |
no |
PATH_TO_PRIVATE_KEY | Path to aws private key used to connect to the instance | string |
"~/.ssh/appsilon_homework.pem" |
no |
aws_ami | AWS AMI id | string |
"ami-09439f09c55136ecf" |
no |
aws_instance_type | Type of AWS EC2 instance | string |
"t2.micro" |
no |
aws_key_name | AWS Key pair name | string |
"appsilon_homework" |
no |
aws_region | AWS availability zone | string |
"eu-central-1" |
no |
Name | Description |
---|---|
instance_public_dns | Public DNS instance address - rstudio-connect URL |