forked from rust-lang/simpleinfra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy SQS queue for crates.io to staging
The SQS queue that was configured in rust-lang#377 has been deployed to the new staging account for crates.io that was created in rust-lang#374. Slight modifications were necessary to the configuration: - The resource and human-readable names of the SQS are now identical. - The `sid` for policies matches the naming rules of AWS. - The input variable has been changed, since the account number is not part of a bucket's ARN and can thus not be extracted from it. The infrastructure has been deployed with the same version of the Terraform provider for AWS as the other modules in simpleinfra to ensure future compatibility.
- Loading branch information
Showing
5 changed files
with
78 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"aws": { | ||
"profile": "crates-io-staging", | ||
"region": "us-east-2" | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
terragrunt/accounts/crates-io-staging/crates-io-logs/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
terragrunt/accounts/crates-io-staging/crates-io-logs/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
terraform { | ||
source = "../../../..//terragrunt/modules/crates-io-logs" | ||
} | ||
|
||
include { | ||
path = find_in_parent_folders() | ||
merge_strategy = "deep" | ||
} | ||
|
||
inputs = { | ||
bucket_account = 890664054962 | ||
bucket_arn = "arn:aws:s3:::rust-staging-crates-io-logs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
terraform { | ||
required_version = "~> 1" | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 4.32" | ||
} | ||
} | ||
} | ||
|
||
variable "bucket_account" { | ||
type = number | ||
description = "Account ID of the S3 bucket which will send events to the SQS queue" | ||
} | ||
|
||
variable "bucket_arn" { | ||
type = string | ||
description = "ARN of the S3 bucket which will send events to the SQS queue" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters