hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.86k stars 9.2k forks source link

AppSync Terraform: Data Sources #11489

Open darrenfurr opened 4 years ago

darrenfurr commented 4 years ago

Community Note

Description

We have multiple AppSync graphql endpoints & multiple CD pipelines. Currently, there is no way to get the AppSync graphql endpoint unless we have all AppSync Terraform together in 1 pipeline.

Are Data Sources going to be supported for AppSync? It appears we can do this via the AWS CLI: https://docs.aws.amazon.com/cli/latest/reference/appsync/get-graphql-api.html

New or Affected Resource(s)

Potential Terraform Configuration

data "aws_appsync_graphql_api" "current" {
  name = "MyAppSyncApi"
}

resource "aws_s3_bucket_object" "this" {
  bucket = "testBucket"
  content = <<EOF {
    ENDPOINT: data.aws_appsync_graphql_api.current.uris["GRAPHQL"]
  };
  EOF
}

References

github-actions[bot] commented 2 years ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

schematis commented 2 years ago

Am wondering if leveraging list-graphql-apis (https://docs.aws.amazon.com/cli/latest/reference/appsync/list-graphql-apis.html) on the backend and then doing filtering based off the key/value in the data block would be an option?

github-actions[bot] commented 1 week ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!