-
Notifications
You must be signed in to change notification settings - Fork 131
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
move terraform-aws-eks-blueprints-addon inside terraform-aws-eks-blueprints-addons #221
Comments
I'm sorry, I don't quite follow - what is the exact issue that you are encountering? |
Lets say I just want to use aws_efs_csi_driver and ingress_nginx: module "eks_blueprints_addons" {
source = "aws-ia/eks-blueprints-addons/aws"
version = "~> 1.0"
cluster_name = module.eks.cluster_name
cluster_endpoint = module.eks.cluster_endpoint
cluster_version = module.eks.cluster_version
oidc_provider_arn = module.eks.oidc_provider_arn
enable_aws_efs_csi_driver = true
enable_ingress_nginx = true
} When I run Am I using the module correctly? Is there currently a way to avoid unnecessary downloads? A possible solution might be to move the |
you can use the source of the module you want, avoiding to download all of them. |
This distinction and separation is important to avoid issues created in the past |
@FernandoMiguel, do you mean you are partially replicating what terraform-aws-eks-blueprints-addons (plural) does inside your own Terraform files? So lets say you use aws_efs_csi_driver. In this case would you replicate (copy) terraform-aws-eks-blueprints-addons/main.tf Line 372 in b8b7a4f
|
@bryantbiggs We have been also affected by aws-ia/terraform-aws-eks-blueprints#1630 (comment) as you can see here dspace-group/simphera-reference-architecture-aws#89. But if terraform-aws-eks-blueprints-addon (singular) would be moved into terraform-aws-eks-blueprints-addons (plural) repo, could not partners still use it like this: module "eks_addons" {
source = "terraform-aws-modules/eks/aws//module/terraform-aws-eks-blueprints-addon"
version = "1.1.0"
} |
The modules are designed from a perspective of stability and clear versioning requirements. They are not designed from the perspective of how many copies are downloaded |
Like this
This gets you karpenter only, at whatever version you want. |
@FernandoMiguel this approach won't work with |
I haven't looked in detail, but care to let me know why not? |
@bryantbiggs are those design requirements contradictory? |
@FernandoMiguel there are upcoming breaking changes in terraform-aws-eks-blueprints. The project is going to be restructured. However, the approach I outlined in #221 (comment) will work. |
No |
@bryantbiggs How about packaging and releasing the individual addons as self-contained modules on the registry? Like so: # aws-ia/terraform-aws-eks-blueprints-addons/blob/main/main.tf
module "aws_efs_csi_driver" {
source = "aws-ia/eks-blueprints-addon/aws/aws_efs_csi_driver"
version = "x.y.z"
} # aws-ia/eks-blueprints-addon/aws/aws_efs_csi_driver
module "base" {
source = "aws-ia/eks-blueprints-addon/aws"
version = "x.y.z"
} If you want to keep everything in one repo, I think it is feasible to write automation scripts that "cut out" the individual modules from the mono-repo and publish them to the Terraform registry automatically. |
This issue has been automatically marked as stale because it has been open 30 days |
Issue closed due to inactivity. |
Please describe your question here
Cannot we move terraform-aws-eks-blueprints-addon inside terraform-aws-eks-blueprints-addons?
I just need a few addons, but all needs to be downloaded when I run
terraform init
, because all submodules referencesource = "aws-ia/eks-blueprints-addon/aws"
.Provide a link to the example/module related to the question
Additional context
The text was updated successfully, but these errors were encountered: