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: Add VPC/subnets/sg config for multi-account project template to sagemaker-templates-service-catalog module #35

Merged
merged 22 commits into from
Apr 11, 2024

Conversation

rtdurga
Copy link
Contributor

@rtdurga rtdurga commented Mar 21, 2024

Describe your changes

  • add VPC/subnets/sg config for multi-account project template
  • housekeeping

Issue ticket number and link

Checklist before requesting a review

  • I updated CHANGELOG.MD with a description of my changes
  • If the change was to a module, I ran the code validation script (scripts/validate.sh)
  • If the change was to a module, I have added thorough tests
  • If the change was to a module, I have added/updated the module's README.md
  • If a module was added, I added a reference to the module to the repository's README.md
  • I verified that my code deploys successfully using seedfarmer apply

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kukushking kukushking linked an issue Mar 23, 2024 that may be closed by this pull request
rtdurga and others added 6 commits March 24, 2024 12:05
Added vpc and subnetid parameters.
added vpcid and subnetid parameters
Added vpcID, subnetID parameters for preprod and prod accounts. They are mandatory as of now
Added vpc and subnet parameters for prod and preprod. They are mandatory as of now
added vpc and subnetid parameters
rtdurga and others added 6 commits April 6, 2024 22:20
… lists. Removed all parameters as cfnparameters
… lists. Removed all parameters as cfnparameters
- standartize parameters
- naming conventions & housekeeping

Signed-off-by: Anton Kukushkin <[email protected]>
@kukushking kukushking closed this Apr 9, 2024
@kukushking kukushking reopened this Apr 9, 2024
@kukushking kukushking changed the title VPC/SubnetID parameters added but are mandatory as of now feat: Add VPC/subnets/sg config for multi-account project template to sagemaker-templates-service-catalog module Apr 9, 2024
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Comment on lines -44 to -49
preprod_account_id = CfnParameter(
self,
"PreprodAccountId",
type="String",
description="Pre-prod account id.",
).value_as_string
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we still include these parameters, only offering default values? This would allow the template user to overwrite these value.

Copy link
Contributor

@kukushking kukushking Apr 9, 2024

Choose a reason for hiding this comment

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

Yes, we can pass down the default parameter values from the props of the module - this is how it was few commits back... I thought we can hide this setup from data scientists completely but I agree there still might be a use case where this may need to be changed.

One consequence is that if the users want no VPC in dev, they would still have to provide some dummy value since there are no optional parameters in CFN.

Since we're here: another change I've been contemplating is possibly moving endpoint configs out as seed-farmer data files. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My view is we should leave it without the parameters. Someone using the template to create a project might not know these values and can lose interest using the template as they feel it is complex to use

Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
@kukushking kukushking merged commit d248a56 into awslabs:main Apr 11, 2024
9 checks passed
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.

[FEATURE] Configurable VPC/accounts for templates module
4 participants