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

Re-work pipeline #30

Merged
merged 1 commit into from
Aug 17, 2024
Merged

Re-work pipeline #30

merged 1 commit into from
Aug 17, 2024

Conversation

jarrod-lowe
Copy link
Owner

No description provided.

Copy link

Copy link

github-actions bot commented Aug 17, 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: 1 to add, 0 to change, 1 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+   create
-   destroy

Terraform will perform the following actions:

  # module.wildsea.aws_appsync_resolver.resolver["createGame"] will be created
+   resource "aws_appsync_resolver" "resolver" {
+       api_id      = "**************************"
+       arn         = (known after apply)
+       code        = <<-EOT
            // mutation/createGame/appsync.ts
            import { util } from "@aws-appsync/utils";
            function request(context) {
              if (!context.identity) {
                util.error("Unauthorized: Identity information is missing.");
              }
              const identity = context.identity;
              if (!identity.sub) {
                util.error("Unauthorized: User ID is missing.");
              }
              const input = context.arguments.input;
              const id = util.autoId();
              const timestamp = util.time.nowISO8601();
              return {
                operation: "PutItem",
                key: util.dynamodb.toMapValues({ PK: "GAME#" + id, SK: "GAME" }),
                attributeValues: util.dynamodb.toMapValues({
                  name: input.name,
                  description: input.description,
                  id,
                  fireflyUserId: identity.sub,
                  createdAt: timestamp,
                  updatedAt: timestamp
                })
              };
            }
            function response(context) {
              if (context.error) {
                util.appendError(context.error.message, context.error.type, context.result);
                return;
              }
              return context.result;
            }
            export {
              request,
              response
            };
            //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiYXBwc3luYy50cyJdLAogICJtYXBwaW5ncyI6ICI7QUFBQSxTQUFTLFlBQStGO0FBY2pHLFNBQVMsUUFBUSxTQUFzRTtBQUMxRixNQUFJLENBQUMsUUFBUSxVQUFVO0FBQ25CLFNBQUssTUFBTSxnREFBMEQ7QUFBQSxFQUN6RTtBQUVBLFFBQU0sV0FBVyxRQUFRO0FBQ3pCLE1BQUksQ0FBQyxTQUFTLEtBQUs7QUFDZixTQUFLLE1BQU0sbUNBQTZDO0FBQUEsRUFDNUQ7QUFFQSxRQUFNLFFBQVEsUUFBUSxVQUFVO0FBQ2hDLFFBQU0sS0FBSyxLQUFLLE9BQU87QUFDdkIsUUFBTSxZQUFZLEtBQUssS0FBSyxXQUFXO0FBQ3ZDLFNBQU87QUFBQSxJQUNILFdBQVc7QUFBQSxJQUNYLEtBQUssS0FBSyxTQUFTLFlBQVksRUFBRSxJQUFJLFVBQVEsSUFBSSxJQUFJLE9BQU8sQ0FBQztBQUFBLElBQzdELGlCQUFpQixLQUFLLFNBQVMsWUFBWTtBQUFBLE1BQ3ZDLE1BQU0sTUFBTTtBQUFBLE1BQ1osYUFBYSxNQUFNO0FBQUEsTUFDbkI7QUFBQSxNQUNBLGVBQWUsU0FBUztBQUFBLE1BQ3hCLFdBQVc7QUFBQSxNQUNYLFdBQVc7QUFBQSxJQUNmLENBQUM7QUFBQSxFQUNMO0FBQ0o7QUFFTyxTQUFTLFNBQVMsU0FBMkI7QUFDaEQsTUFBSSxRQUFRLE9BQU87QUFDZixTQUFLLFlBQVksUUFBUSxNQUFNLFNBQVMsUUFBUSxNQUFNLE1BQU0sUUFBUSxNQUFNO0FBQzFFO0FBQUEsRUFDSjtBQUNBLFNBQU8sUUFBUTtBQUNuQjsiLAogICJuYW1lcyI6IFtdCn0K
        EOT
+       data_source = "Wildsea_primary"
+       field       = "createGame"
+       id          = (known after apply)
+       kind        = "UNIT"
+       type        = "Mutation"

+       runtime {
+           name            = "APPSYNC_JS"
+           runtime_version = "1.0.0"
        }
    }

  # module.wildsea.null_resource.graphql_compile["createGame"] will be destroyed
  # (because null_resource.graphql_compile is not in configuration)
-   resource "null_resource" "graphql_compile" {
-       id       = "205002815431302778" -> null
-       triggers = {
-           "dest_file"     = "../../../graphql/mutation/createGame/appsync.js"
-           "source_change" = "daf5c630b4ed20ccca828ac8700014db19c23b99b4175e0bfac2e04d72dd9222"
        } -> null
    }

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

✅ Plan applied in Environment Main - Apply #26

@jarrod-lowe jarrod-lowe merged commit 13f05ae into main Aug 17, 2024
5 checks passed
@jarrod-lowe jarrod-lowe deleted the work branch August 17, 2024 03:38
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