-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fixes for deployement in OS #20
Conversation
terraform_deploy/metadata_db.tf
Outdated
@@ -15,14 +29,20 @@ resource "aws_db_instance" "metadata_db" { | |||
instance_class = var.metadata_db_defaults["instance_class"] | |||
username = var.metadata_db_defaults["username"] | |||
password = local.db_password | |||
parameter_group_name = var.metadata_db_defaults["parameter_group_name"] | |||
parameter_group_name = length(aws_db_parameter_group.metadata_db_parameter_group) == 1 ? aws_db_parameter_group.metadata_db_parameter_group[length(aws_db_parameter_group.metadata_db_parameter_group)].name: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe indent to make more readable?
""" | ||
state = None | ||
try: | ||
config = Config(connect_timeout=5, retries={"max_attempts": 0}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we allow option to pass args for connect_timeout, retries, region?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is an issue created that abstracts out aws completely as it doesn't really belong in this file.
#22
I would imagine that includes having a config file that accounts for this as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could clarify the issue to reference that these can be settings that would be adjustable in the abstracted scenario.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this comment is why we are not getting this PR through but this was/is discussed in the issue pertaining to it:
This should be abstracted out so that any remote deployment is enabled for the service.
allow_aggregation = get_aws_event_rule_state(self) | ||
if allow_aggregation is None: | ||
return allow_aggregation | ||
return get_aws_event_rule_state(self) == "enabled" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return get_aws_event_rule_state(self) == "enabled" | |
return allow_aggregation == "enabled" |
Co-authored-by: Michael Davis <[email protected]>
No description provided.