sqs-policy-document

dod-iac/sqs-policy-document/aws

Terraform Module HCL AWS

A SQS policy document.

Install
module "sqs-policy-document" {
source = "dod-iac/sqs-policy-document/aws"
version = "1.0.2"
}
plain text: /constructs/tfmod-dod-iac-sqs-policy-document-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates a SQS policy document for use as a policy for a SQS queue. ``hcl module "sqs_policy_document" { source = "dod-iac/sqs-policy-document/aws" s3_buckets_send = [module.s3_bucket_source.arn] receivers = [module.lambda_function_receive.arn] } module "sqs_queue" { source = "dod-iac/sqs-queue" name = format("app-%s-%s", var.application, var.environment) policy = module.sqs_policy_document.json } ` Testing Run all terratest tests using the terratest script. If using aws-vault, you could use aws-vault exec $AWS_PROFILE -- terratest. The AWS_DEFAULT_REGION environment variable is required by the tests. Use TT_SKIP_DESTROY=1 to not destroy the infrastructure created during the tests. Use TT_VERBOSE=1 to log all tests as they are run. Use TT_TIMEOUT to set the timeout for the tests, with

Inputs (6)
NameTypeDescriptionDefault
queue_arnstringThe ARN of the AWS SQS queue. required
eventbridge_rules_sendlist(string)The ARNs of the AWS EventBridge rules that can send events into the queue. Use []
s3_buckets_sendlist(string)The ARNs of the AWS S3 buckets that can send S3 event notifications into the que[]
sns_topics_sendlist(string)The ARNs of the AWS SNS topics that can send SNS messages into the queue. Use ["[]
receiverslist(string)List of AWS principals that can receive messages from the SQS queue.[]
senderslist(string)List of AWS principals that can send messages into the SQS queue.[]
Outputs (1)
json — The rendered JSON of the policy document.
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.2
Cloud AWS
★ Stars0
Forks0
Total downloads4.9k
Inputs6
Outputs1
Examples1
LicenseNOASSERTION
Namespacedod-iac
Updated