Skip to content

Flesh out secure_compute_network data source #325

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

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

Conversation

dglsparsons
Copy link
Collaborator

This will be useful in the future for getting the ID of a network and
being able to associate it with projects.
Plus, there may be use-cases where getting the AWS IDs, or regions, etc.
is useful.

This will be useful in the future for getting the ID of a network and
being able to associate it with projects.
Plus, there may be use-cases where getting the AWS IDs, or regions, etc.
is useful.
Computed: true,
},
"elastic_ip_addresses": schema.SetAttribute{
Description: "A list of Elastic IP addresses.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Description: "A list of Elastic IP addresses.",
Description: "A list of Public IP addresses.",

Also, we should move this out of the AWS struct.

Comment on lines +125 to +145
"lambda_role_arn": schema.StringAttribute{
Description: "The ARN of the Lambda role.",
Computed: true,
},
"security_group_id": schema.StringAttribute{
Description: "The ID of the security group.",
Computed: true,
},
"stack_id": schema.StringAttribute{
Description: "The ID of the CloudFormation stack.",
Computed: true,
},
"subnet_ids": schema.SetAttribute{
Description: "A list of subnet IDs.",
Computed: true,
ElementType: types.StringType,
},
"subscription_arn": schema.StringAttribute{
Description: "The ARN of the subscription.",
Computed: true,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

We should actually remove the disclosure of these properties from the API, they're not sensitive, but also not useful to the customer.

Suggested change
"lambda_role_arn": schema.StringAttribute{
Description: "The ARN of the Lambda role.",
Computed: true,
},
"security_group_id": schema.StringAttribute{
Description: "The ID of the security group.",
Computed: true,
},
"stack_id": schema.StringAttribute{
Description: "The ID of the CloudFormation stack.",
Computed: true,
},
"subnet_ids": schema.SetAttribute{
Description: "A list of subnet IDs.",
Computed: true,
ElementType: types.StringType,
},
"subscription_arn": schema.StringAttribute{
Description: "The ARN of the subscription.",
Computed: true,
},

Comment on lines +95 to +99
"availability_zone_ids": schema.SetAttribute{
Description: "A set of AWS Availability Zone IDs where the Secure Compute Network resources are deployed.",
Computed: true,
ElementType: types.StringType,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be in the AWS struct.

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.

2 participants