<|start_filename|>terraform/Makefile<|end_filename|>
.PHONY: cloudcraft betajob

cloudcraft:
	terraform init -backend-config=cloudcraft/backend.hcl -reconfigure && terraform apply -var-file=cloudcraft/cloudcraft.tfvars

betajob:
	terraform init -backend-config=betajob/backend.hcl -reconfigure && terraform apply -var-file=betajob/betajob.tfvars


<|start_filename|>test_fixtures/input_localfile.json<|end_filename|>
{
  "body": "",
  "queryStringParameters": {
    "localfile": "test_fixtures/input/blueprint_cloudfront_lambda_apigw.json"
  }
}


<|start_filename|>src/terraform-aws-modules-metadata/s3-bucket_variables.json<|end_filename|>
{
  "acceleration_status": {
    "default": "null",
    "description": "(Optional) Sets the accelerate configuration of an existing bucket. Can be Enabled or Suspended.",
    "type": "string"
  },
  "acl": {
    "default": "private",
    "description": "(Optional) The canned ACL to apply. Defaults to 'private'. Conflicts with `grant`",
    "type": "string"
  },
  "attach_deny_insecure_transport_policy": {
    "default": false,
    "description": "Controls if S3 bucket should have deny non-SSL transport policy attached",
    "type": "bool"
  },
  "attach_elb_log_delivery_policy": {
    "default": false,
    "description": "Controls if S3 bucket should have ELB log delivery policy attached",
    "type": "bool"
  },
  "attach_policy": {
    "default": false,
    "description": "Controls if S3 bucket should have bucket policy attached (set to `true` to use value of `policy` as bucket policy)",
    "type": "bool"
  },
  "attach_public_policy": {
    "default": true,
    "description": "Controls if a user defined public bucket policy will be attached (set to `false` to allow upstream to apply defaults to the bucket)",
    "type": "bool"
  },
  "block_public_acls": {
    "default": false,
    "description": "Whether Amazon S3 should block public ACLs for this bucket.",
    "type": "bool"
  },
  "block_public_policy": {
    "default": false,
    "description": "Whether Amazon S3 should block public bucket policies for this bucket.",
    "type": "bool"
  },
  "bucket": {
    "default": "null",
    "description": "(Optional, Forces new resource) The name of the bucket. If omitted, Terraform will assign a random, unique name.",
    "type": "string"
  },
  "bucket_prefix": {
    "default": "null",
    "description": "(Optional, Forces new resource) Creates a unique bucket name beginning with the specified prefix. Conflicts with bucket.",
    "type": "string"
  },
  "cors_rule": {
    "default": [],
    "description": "List of maps containing rules for Cross-Origin Resource Sharing.",
    "type": "any"
  },
  "create_bucket": {
    "default": true,
    "description": "Controls if S3 bucket should be created",
    "type": "bool"
  },
  "force_destroy": {
    "default": false,
    "description": "(Optional, Default:false ) A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable.",
    "type": "bool"
  },
  "grant": {
    "default": [],
    "description": "An ACL policy grant. Conflicts with `acl`",
    "type": "any"
  },
  "ignore_public_acls": {
    "default": false,
    "description": "Whether Amazon S3 should ignore public ACLs for this bucket.",
    "type": "bool"
  },
  "lifecycle_rule": {
    "default": [],
    "description": "List of maps containing configuration of object lifecycle management.",
    "type": "any"
  },
  "logging": {
    "default": {},
    "description": "Map containing access bucket logging configuration.",
    "type": "map(string)"
  },
  "object_lock_configuration": {
    "default": {},
    "description": "Map containing S3 object locking configuration.",
    "type": "any"
  },
  "policy": {
    "default": "null",
    "description": "(Optional) A valid bucket policy JSON document. Note that if the policy document is not specific enough (but still valid), Terraform may view the policy as constantly changing in a terraform plan. In this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with Terraform, see the AWS IAM Policy Document Guide.",
    "type": "string"
  },
  "replication_configuration": {
    "default": {},
    "description": "Map containing cross-region replication configuration.",
    "type": "any"
  },
  "request_payer": {
    "default": "null",
    "description": "(Optional) Specifies who should bear the cost of Amazon S3 data transfer. Can be either BucketOwner or Requester. By default, the owner of the S3 bucket would incur the costs of any data transfer. See Requester Pays Buckets developer guide for more information.",
    "type": "string"
  },
  "restrict_public_buckets": {
    "default": false,
    "description": "Whether Amazon S3 should restrict public bucket policies for this bucket.",
    "type": "bool"
  },
  "server_side_encryption_configuration": {
    "default": {},
    "description": "Map containing server-side encryption configuration.",
    "type": "any"
  },
  "tags": {
    "default": {},
    "description": "(Optional) A mapping of tags to assign to the bucket.",
    "type": "map(string)"
  },
  "versioning": {
    "default": {},
    "description": "Map containing versioning configuration.",
    "type": "map(string)"
  },
  "website": {
    "default": {},
    "description": "Map containing static web-site hosting or redirect configuration.",
    "type": "map(string)"
  }
}


<|start_filename|>src/terraform-aws-modules-metadata/cloudfront_variables.json<|end_filename|>
{
  "aliases": {
    "default": "null",
    "description": "Extra CNAMEs (alternate domain names), if any, for this distribution.",
    "type": "list(string)"
  },
  "comment": {
    "default": "null",
    "description": "Any comments you want to include about the distribution.",
    "type": "string"
  },
  "create_distribution": {
    "default": true,
    "description": "Controls if CloudFront distribution should be created",
    "type": "bool"
  },
  "create_origin_access_identity": {
    "default": false,
    "description": "Controls if CloudFront origin access identity should be created",
    "type": "bool"
  },
  "custom_error_response": {
    "default": {},
    "description": "One or more custom error response elements",
    "type": "any"
  },
  "default_cache_behavior": {
    "default": "null",
    "description": "The default cache behavior for this distribution",
    "type": "any"
  },
  "default_root_object": {
    "default": "null",
    "description": "The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL.",
    "type": "string"
  },
  "enabled": {
    "default": true,
    "description": "Whether the distribution is enabled to accept end user requests for content.",
    "type": "bool"
  },
  "geo_restriction": {
    "default": {},
    "description": "The restriction configuration for this distribution (geo_restrictions)",
    "type": "any"
  },
  "http_version": {
    "default": "http2",
    "description": "The maximum HTTP version to support on the distribution. Allowed values are http1.1 and http2. The default is http2.",
    "type": "string"
  },
  "is_ipv6_enabled": {
    "default": "null",
    "description": "Whether the IPv6 is enabled for the distribution.",
    "type": "bool"
  },
  "logging_config": {
    "default": {},
    "description": "The logging configuration that controls how logs are written to your distribution (maximum one).",
    "type": "any"
  },
  "ordered_cache_behavior": {
    "default": [],
    "description": "An ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0.",
    "type": "any"
  },
  "origin": {
    "default": "null",
    "description": "One or more origins for this distribution (multiples allowed).",
    "type": "any"
  },
  "origin_access_identities": {
    "default": {},
    "description": "Map of CloudFront origin access identities (value as a comment)",
    "type": "map(string)"
  },
  "origin_group": {
    "default": {},
    "description": "One or more origin_group for this distribution (multiples allowed).",
    "type": "any"
  },
  "price_class": {
    "default": "null",
    "description": "The price class for this distribution. One of PriceClass_All, PriceClass_200, PriceClass_100",
    "type": "string"
  },
  "retain_on_delete": {
    "default": false,
    "description": "Disables the distribution instead of deleting it when destroying the resource through Terraform. If this is set, the distribution needs to be deleted manually afterwards.",
    "type": "bool"
  },
  "tags": {
    "default": "null",
    "description": "A map of tags to assign to the resource.",
    "type": "map(string)"
  },
  "viewer_certificate": {
    "default": {
      "cloudfront_default_certificate": true,
      "minimum_protocol_version": "TLSv1"
    },
    "description": "The SSL configuration for this distribution",
    "type": "any"
  },
  "wait_for_deployment": {
    "default": true,
    "description": "If enabled, the resource will wait for the distribution status to change from InProgress to Deployed. Setting this tofalse will skip the process.",
    "type": "bool"
  },
  "web_acl_id": {
    "default": "null",
    "description": "If you're using AWS WAF to filter CloudFront requests, the Id of the AWS WAF web ACL that is associated with the distribution. The WAF Web ACL must exist in the WAF Global (CloudFront) region and the credentials configuring this argument must have waf:GetWebACL permissions assigned. If using WAFv2, provide the ARN of the web ACL.",
    "type": "string"
  }
}


<|start_filename|>test_fixtures/input_cloudcraft.json<|end_filename|>
{
  "body": "",
  "queryStringParameters": {
    "cloudcraft": "https://app.cloudcraft.co/api/blueprint/5b27afb9-1cce-4bbc-a0aa-6bc5febc7ba0?key=<KEY>"
  }
}
