-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
enhancementNew feature or requestNew feature or request
Description
This issue is to track a few fairly minor issues with our AWS Terraform deployment example:
- Public subnets are not consistently tagged in such a way that the script automatically selects them (in https://github.com/1Password/scim-examples/blob/master/aws-ecsfargate-terraform/main.tf#L34).
- To meet AWS requirements for creating a load balancer, the deployment requires at least two public and private subnets, each across at least two availability zones
- Default tags can be added more DRY-ly in the
providerblock (see https://www.hashicorp.com/blog/default-tags-in-the-terraform-aws-provider) rather than sprinkled throughout. - The set of default tags should be expanded for best practices with AWS (see, for example, https://engineering.deptagency.com/best-practices-for-terraform-aws-tags).
- Some of the resource blocks have been renamed and should be updated (e.g.
aws_albis known asaws_lb: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb) - Clean up the README for readability, length, and clarity (e.g. perhaps the optional headings could be under a collapsible section).
Some nice-to-haves, possibly for future work:
- Modularize the deployment to enable different sets of AWS credentials for certain resources (for example, if a separate account is required to manage Route53).
- Gracefully handle TLS cert management for customers using something other than Route53. Currently the plan fails to apply until ACM validates the external domain.
- We may be able to optionally create the necessary VPCs and subnets instead of choosing between using the default VPC or specifying an existing VPC. In my experience working directly with customers, subnets are often created specifically for the SCIM bridge anyway. If the script can automate that work as well, all the better.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request