-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from sassoftware/staging
7.2.0 - September 6, 2023
- Loading branch information
Showing
16 changed files
with
310 additions
and
38 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
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
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
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
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
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
File renamed without changes.
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
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
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,83 @@ | ||
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Permissions based off the IAM Policies required to manage fsx_ontap resources in this project | ||
data "aws_iam_policy_document" "worker_fsx_ontap" { | ||
statement { | ||
sid = "fsxFileSystemOwn" | ||
effect = "Allow" | ||
resources = ["*"] | ||
|
||
actions = [ | ||
"fsx:CreateFileSystem", | ||
"fsx:UpdateFileSystem", | ||
"fsx:UntagResource", | ||
"fsx:CreateBackup", | ||
"fsx:TagResource", | ||
"fsx:DeleteFileSystem", | ||
] | ||
} | ||
|
||
statement { | ||
sid = "fsxFileSystemAll" | ||
effect = "Allow" | ||
resources = ["arn:aws:fsx:*:*:*/*"] | ||
|
||
actions = [ | ||
"fsx:CreateVolume", | ||
"fsx:DeleteStorageVirtualMachine", | ||
"fsx:UpdateVolume", | ||
"fsx:CreateStorageVirtualMachine", | ||
"fsx:DeleteVolume", | ||
] | ||
} | ||
|
||
statement { | ||
sid = "fsxVolumeOwn" | ||
effect = "Allow" | ||
resources = ["arn:aws:fsx:*:*:volume/*"] | ||
|
||
actions = [ | ||
"fsx:CreateVolume", | ||
"fsx:UpdateVolume", | ||
"fsx:DeleteVolume", | ||
] | ||
} | ||
|
||
statement { | ||
sid = "fsxDescribeAll" | ||
effect = "Allow" | ||
resources = ["*"] | ||
|
||
actions = [ | ||
"fsx:DescribeFileSystems", | ||
"fsx:DescribeVolumes", | ||
"fsx:DescribeStorageVirtualMachines", | ||
"fsx:UntagResource", | ||
"fsx:TagResource", | ||
] | ||
} | ||
|
||
statement { | ||
sid = "fsxListTagsAll" | ||
effect = "Allow" | ||
resources = ["arn:aws:fsx:*:*:*/*"] | ||
actions = ["fsx:ListTagsForResource"] | ||
} | ||
} | ||
|
||
resource "aws_iam_policy" "worker_fsx_ontap" { | ||
name_prefix = "${var.prefix}-fsx-ontap" | ||
description = "EKS worker node fsx_ontap policy for cluster ${var.cluster_name}" | ||
policy = data.aws_iam_policy_document.worker_fsx_ontap.json | ||
tags = var.tags | ||
} | ||
|
||
data "aws_iam_user" "terraform" { | ||
user_name = var.iam_user_name | ||
} | ||
|
||
resource "aws_iam_user_policy_attachment" "attachment" { | ||
user = data.aws_iam_user.terraform.user_name | ||
policy_arn = aws_iam_policy.worker_fsx_ontap.arn | ||
} |
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,2 @@ | ||
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 |
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,26 @@ | ||
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
variable "prefix" { | ||
description = "A prefix used for all AWS Cloud resources created by this script" | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "cluster_name" { | ||
description = "Name of EKS cluster" | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "tags" { | ||
description = "Tags used for fsx_ontap" | ||
type = map(any) | ||
default = null | ||
} | ||
|
||
variable "iam_user_name" { | ||
description = "AWS caller identity user name parsed from the ARN value" | ||
type = string | ||
default = "" | ||
} |
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
Oops, something went wrong.