Skip to content
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

feat: Support permission init for control plane management volume #104

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

tuteng
Copy link
Member

@tuteng tuteng commented Dec 23, 2024

No description provided.

@tuteng tuteng requested a review from a team as a code owner December 23, 2024 01:27
@tuteng tuteng changed the title Support permission init for control plane management volume feat: Support permission init for control plane management volume Dec 23, 2024
Copy link
Member

@ciiiii ciiiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming this module volume-access would be better to maintain consistency with format of vendor-access.

modules/aws/sn-volume-access/variables.tf Outdated Show resolved Hide resolved
}

module "sn_managed_cloud" {
source = "../../modules/aws/volume-access"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will change it after this pr approve and merged

}

resource "aws_iam_role" "access_bucket_role" {
name = "sn-${var.external_id}-${var.bucket}-${var.path}"
Copy link
Member

@maxsxu maxsxu Jan 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need handle the situation that the S3 path can contain multi path separator, e.g, s3://test-snowflake/it_iceberg/data/streaming_ingest/GBQMaKNHsA/a1/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And be noted that the IAM Role name length is restricted to up to 64 characters.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks

Comment on lines 25 to 33
variable "bucket" {
description = "User bucket name"
type = string
}

variable "path" {
description = "S3 bucket path"
type = string
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can make it as an array, so user just need to append new bucket to the array rather than define a new terraform module.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants