Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create graphql data source #28

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Create graphql data source #28

merged 1 commit into from
Aug 15, 2024

Conversation

jarrod-lowe
Copy link
Owner

No description provided.

Copy link

github-actions bot commented Aug 15, 2024

Terraform plan in terraform/environment/wildsea
With backend config: bucket=terraform-state-021891603679 key=primary/terraform.tfstate region=ap-southeast-2

With variables

environment       = "primary"
saml_metadata_url = (sensitive value)
Plan: 4 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+   create

Terraform will perform the following actions:

  # module.wildsea.aws_appsync_datasource.graphql will be created
+   resource "aws_appsync_datasource" "graphql" {
+       api_id           = "**************************"
+       arn              = (known after apply)
+       description      = "DynamoDB Resolver"
+       id               = (known after apply)
+       name             = "Wildsea_primary"
+       service_role_arn = (known after apply)
+       type             = "AMAZON_DYNAMODB"

+       dynamodb_config {
+           region     = "ap-southeast-2"
+           table_name = "Wildsea-primary"
        }
    }

  # module.wildsea.aws_iam_policy.graphql_datasource will be created
+   resource "aws_iam_policy" "graphql_datasource" {
+       arn              = (known after apply)
+       attachment_count = (known after apply)
+       id               = (known after apply)
+       name             = "Wildsea-primary-graphql-datasource"
+       name_prefix      = (known after apply)
+       path             = "/"
+       policy           = jsonencode(
            {
+               Statement = [
+                   {
+                       Action   = [
+                           "dynamodb:UpdateutItem",
+                           "dynamodb:Query",
+                           "dynamodb:PutItem",
+                           "dynamodb:GetItem",
+                           "dynamodb:BatchGetItem",
                        ]
+                       Effect   = "Allow"
+                       Resource = "arn:aws:dynamodb:ap-southeast-2:021891603679:table/Wildsea-primary"
                    },
                ]
+               Version   = "2012-10-17"
            }
        )
+       policy_id        = (known after apply)
+       tags             = {
+           "Name" = "Wildsea-primary"
        }
+       tags_all         = {
+           "Application" = "Wildsea-primary"
+           "Name"        = "Wildsea-primary"
        }
    }

  # module.wildsea.aws_iam_role.graphql_datasource will be created
+   resource "aws_iam_role" "graphql_datasource" {
+       arn                   = (known after apply)
+       assume_role_policy    = jsonencode(
            {
+               Statement = [
+                   {
+                       Action    = "sts:AssumeRole"
+                       Effect    = "Allow"
+                       Principal = {
+                           Service = "appsync.amazonaws.com"
                        }
                    },
                ]
+               Version   = "2012-10-17"
            }
        )
+       create_date           = (known after apply)
+       force_detach_policies = false
+       id                    = (known after apply)
+       managed_policy_arns   = (known after apply)
+       max_session_duration  = 3600
+       name                  = "Wildsea-primary-graphql-datasource"
+       name_prefix           = (known after apply)
+       path                  = "/"
+       tags                  = {
+           "Name" = "Wildsea-primary"
        }
+       tags_all              = {
+           "Application" = "Wildsea-primary"
+           "Name"        = "Wildsea-primary"
        }
+       unique_id             = (known after apply)

+       inline_policy (known after apply)
    }

  # module.wildsea.aws_iam_role_policy_attachment.graphql_datasource will be created
+   resource "aws_iam_role_policy_attachment" "graphql_datasource" {
+       id         = (known after apply)
+       policy_arn = (known after apply)
+       role       = "Wildsea-primary-graphql-datasource"
    }

Plan: 4 to add, 0 to change, 0 to destroy.

✅ Plan applied in Environment Main - Apply #24

@jarrod-lowe jarrod-lowe merged commit 59591ad into main Aug 15, 2024
2 checks passed
@jarrod-lowe jarrod-lowe deleted the work branch August 15, 2024 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant