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

[v13] AWS OIDC - List EC2: add AWS EC2 Instance ID as label #31436

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

marcoandredinis
Copy link
Contributor

Backport #31415 to branch/v13

When listing EC2 instances we should be able to tell which ones were
already added.
To do so, we should use the instance-id which is unique.
We can't use the Spec.CloudMetadata.AWS.InstanceID because predicate
can't use fields that are optional.

This PR adds the InstanceID as label.
It uses `teleport.dev/instance-id` label key.

When creating a Node from WebUI, it will send the same set of labels
that was received.
So, WebUI will send this same label.

When listing EC2 instances, WebUI queries the backend for a list of
Nodes of type EC2 EICE and the same `instance-id` and uses the result to
show which ones were already added.
@marcoandredinis marcoandredinis added this pull request to the merge queue Sep 5, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 5, 2023
@marcoandredinis marcoandredinis added this pull request to the merge queue Sep 5, 2023
Merged via the queue into branch/v13 with commit 4fd5e56 Sep 5, 2023
21 checks passed
@marcoandredinis marcoandredinis deleted the bot/backport-31415-branch/v13 branch September 5, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants