mirror of
https://github.com/FlipsideCrypto/convox.git
synced 2026-02-06 10:56:56 +00:00
aws: add more dependencies to prevent race on deletion (#88)
This commit is contained in:
parent
14afc2dae0
commit
7e803634eb
@ -33,11 +33,21 @@ resource "aws_iam_role" "cluster" {
|
||||
}
|
||||
|
||||
resource "aws_iam_role_policy_attachment" "cluster_eks_cluster" {
|
||||
depends_on = [
|
||||
aws_subnet.private,
|
||||
aws_subnet.public,
|
||||
]
|
||||
|
||||
role = aws_iam_role.cluster.name
|
||||
policy_arn = "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy"
|
||||
}
|
||||
|
||||
resource "aws_iam_role_policy_attachment" "cluster_eks_service" {
|
||||
depends_on = [
|
||||
aws_subnet.private,
|
||||
aws_subnet.public,
|
||||
]
|
||||
|
||||
role = aws_iam_role.cluster.name
|
||||
policy_arn = "arn:aws:iam::aws:policy/AmazonEKSServicePolicy"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user