{"id":21513133,"url":"https://github.com/turnerlabs/looker_stack_aws_ec2_tf","last_synced_at":"2026-05-22T05:03:32.866Z","repository":{"id":87027534,"uuid":"225961943","full_name":"turnerlabs/looker_stack_aws_ec2_tf","owner":"turnerlabs","description":"Terraform for Looker Stack","archived":false,"fork":false,"pushed_at":"2020-04-03T14:37:54.000Z","size":1733,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-24T01:51:12.600Z","etag":null,"topics":["aws","looker","terraform"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turnerlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-04T21:39:25.000Z","updated_at":"2023-06-11T13:10:15.000Z","dependencies_parsed_at":"2023-05-30T06:30:27.849Z","dependency_job_id":null,"html_url":"https://github.com/turnerlabs/looker_stack_aws_ec2_tf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnerlabs%2Flooker_stack_aws_ec2_tf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnerlabs%2Flooker_stack_aws_ec2_tf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnerlabs%2Flooker_stack_aws_ec2_tf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnerlabs%2Flooker_stack_aws_ec2_tf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turnerlabs","download_url":"https://codeload.github.com/turnerlabs/looker_stack_aws_ec2_tf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244059537,"owners_count":20391352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","looker","terraform"],"created_at":"2024-11-23T22:54:18.909Z","updated_at":"2026-05-22T05:03:32.771Z","avatar_url":"https://github.com/turnerlabs.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this?\n\nThis is the [terraform](https://www.terraform.io/) code to create the following Looker architecture(assuming all the VPC's / Subnets are already in place).\n\n![AWS](arch/looker.jpg)\n\n## Directories\n\n* The [tf_s3_state](https://github.com/turnerlabs/looker_stack_aws_ec2_tf/tree/master/tf_s3_state) directory contains the terraform code to create an s3 bucket to store the terraform state for the terraform code in the other directory.\n\n* The [tf_existing_network](https://github.com/turnerlabs/looker_stack_aws_ec2_tf/tree/master/tf_existing_network) directory contains the terraform code to create the complete AWS Looker stack using existing VPC's and Subnets.\n\n## How do I migrate new Looker AMIs to the stack I created in tf_existing_network?\n\nThere are several steps required to migrate a new version of Looker.\n\n### Assumptions\n\n* You have followed the instructions [here](https://github.com/turnerlabs/looker_stack_aws_ec2_ami/blob/master/looker_node) to succesfully create a new Looker Node AMI.\n* You have followed the instructions [here](https://github.com/turnerlabs/looker_stack_aws_ec2_tf/tree/master/tf_existing_network) to succesfully create a new Looker AWS Stack.\n\n### Steps\n\n1. Modify [asgLooker.tf](https://github.com/turnerlabs/looker_stack_aws_ec2_tf/blob/master/tf_existing_network/asgLooker.tf) setting the max-size, min-size, and desired -capacity to zero.\n`max_size                  = \"0\"\n  min_size                  = \"0\"\n  desired_capacity          = \"0\"`\n\n2. Run `terraform apply ...` to apply the changes which will take down all your instances.\n\n3. Delete the `resource \"aws_autoscaling_group\" \"asg_looker\" {...}` section in your [asgLooker.tf](https://github.com/turnerlabs/looker_stack_aws_ec2_tf/blob/master/tf_existing_network/asgLooker.tf) file.\n\n4. Delete the `resource \"aws_cloudwatch_metric_alarm\" \"looker_asg_looker_cpu_utilization_too_high\" {..}` section from your [snsCloudwatch.tf](https://github.com/turnerlabs/looker_stack_aws_ec2_tf/blob/master/tf_existing_network/snsCloudwatch.tf) file.\n\n5. Delete lines 28 - 48 that reference the autoscale group from your [cloudwatchDashboard.tf](https://github.com/turnerlabs/looker_stack_aws_ec2_tf/blob/master/tf_existing_network/cloudwatchDashboard.tf) file.\n\n6. Run `terraform apply ...` to apply the changes and remove your auto scale group.\n\n7. Run `git checkout asgLooker.tf snsCloudwatch.tf cloudwatchDashboard.tf` to undo your changes.\n\n8. Run `terraform apply ...` again with the `-var 'looker_node_ami=\u003cnew looker ami id\u003e'` variable set to your new AMI to update the launch config(and the auto scale group as well) with the new AMI.\n\n**To backout changes, do the same steps above replacing the `-var 'looker_node_ami=\u003cnew looker ami\u003e'` section with the previous AMI's id**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturnerlabs%2Flooker_stack_aws_ec2_tf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturnerlabs%2Flooker_stack_aws_ec2_tf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturnerlabs%2Flooker_stack_aws_ec2_tf/lists"}