Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nivleshc/2d7040ea721f7ce04d2f6688d2678543 to your computer and use it in GitHub Desktop.
Save nivleshc/2d7040ea721f7ce04d2f6688d2678543 to your computer and use it in GitHub Desktop.
This gist contains code from the eks/s3-csi.tf file which is part of the blog-amazon-s3-filesystem-for-amazon-eks-cluster repository.
resource "aws_eks_addon" "s3_csi" {
cluster_name = aws_eks_cluster.eks_cluster.name
addon_name = "aws-mountpoint-s3-csi-driver"
addon_version = data.aws_eks_addon_version.s3_csi.version
service_account_role_arn = aws_iam_role.s3_csi.arn
resolve_conflicts_on_create = "OVERWRITE"
tags = {
Name = "${var.eks.cluster_name}-aws-mountpoint-s3-csi-driver"
}
lifecycle {
ignore_changes = [
addon_version
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment