DoSomething / infrastructure

🐄 DoSomething.org's infrastructure, managed by Terraform.
MIT License
3 stars 2 forks source link

Adds Airtable API key #268

Closed aaronschachter closed 4 years ago

aaronschachter commented 4 years ago

What's this PR do?

This pull request adds the Airtable API key needed for https://github.com/DoSomething/graphql/pull/275.

How should this be reviewed?

👀

Any background context you want to provide?

@DFurnes added the AWS secret for this today.

Relevant tickets

References Pivotal #174179474.

Checklist

DFurnes commented 4 years ago

These builds are failing with the following error:

Error: Reference to undeclared resource

  on ../applications/graphql/main.tf line 107, in module "app":
 107:     AIRTABLE_API_KEY = data.aws_ssm_parameter.airtable_api_key.value

A data resource "aws_ssm_parameter" "airtable_api_key" has not been declared
in graphql.

We'll need to define this SSM parameter using a data resource, like this up near the top of this file:

data "aws_ssm_parameter" "airtable_api_key" {
  name = "/airtable/api-key"
}