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
WebDiscover: Finish auto deploy screen (iam configure script) #28621
Conversation
a5bd10f
to
7ebc9d9
Compare
2d52141
to
9814e87
Compare
friendly ping @ryanclark @ibeckermayer |
9814e87
to
e9efd92
Compare
|
||
updateAgentMeta({ integrationName } as DbMeta); | ||
updateAgentMeta({ integration } as DbMeta); |
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.
The type system isn't complaining but this cast doesn't seem like it should work without making db
and selectedAwsRdsDb
optional.
export type DbMeta = BaseMeta & {
// TODO(lisa): when we can enroll multiple RDS's, turn this into an array?
// The enroll event expects num count of enrolled RDS's, update accordingly.
db?: Database;
integration?: Integration;
selectedAwsRdsDb?: AwsRdsDatabase;
// serviceDeployedMethod flag will be undefined if user skipped
// deploying service (service already existed).
serviceDeployedMethod?: ServiceDeployMethod;
};
toolTipContent={`Amazon Resource Names (ARNs) uniquely identifies AWS \ | ||
resources, in this case you will be naming an IAM role that this \ | ||
deployed service will be using`} |
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 is exactly correct
toolTipContent={`Amazon Resource Names (ARNs) uniquely identifies AWS \ | |
resources, in this case you will be naming an IAM role that this \ | |
deployed service will be using`} | |
toolTipContent={`Amazon Resource Names (ARNs) uniquely identify AWS \ | |
resources. In this case you will be giving an ARN to the IAM role that this \ | |
deployed service will be using`} |
If not then
toolTipContent={`Amazon Resource Names (ARNs) uniquely identifies AWS \ | |
resources, in this case you will be naming an IAM role that this \ | |
deployed service will be using`} | |
toolTipContent={`Amazon Resource Names (ARNs) uniquely identify AWS \ | |
resources. In this case you will naming an IAM role that this \ | |
deployed service will be using`} |
You will only need to do this once for all databases per geographical | ||
region. <br /> |
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.
You will only need to do this once for all databases per geographical | |
region. <br /> | |
You will only need to do this once per geographical region.<br /> |
<FeaturesContextProvider value={[]}> | ||
<DiscoverProvider mockCtx={discoverCtx}> | ||
<PingTeleportProvider | ||
interval={TEST_PING_INTERVAL} |
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.
Will this actually try to ping something?
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.
no, the test is too short (default was like 3 seconds), though i added a success state testing that will hit it once
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
e406001
to
8e10e24
Compare
c955ebe
to
05600a0
Compare
* Define the return type * Add endpoint for config script * Store the entire integration object instead of just the name * Build the correct script string, renames, emit event * Enable auto deploy as default * Fix script endpoint and update story * Add regex check, update story * Touch ups, add test * Address CR * Remove sudo from bash command * Make into ui friendly object
* Define the return type * Add endpoint for config script * Store the entire integration object instead of just the name * Build the correct script string, renames, emit event * Enable auto deploy as default * Fix script endpoint and update story * Add regex check, update story * Touch ups, add test * Address CR * Remove sudo from bash command * Make into ui friendly object
…ondition (#29978) * WebDiscover: Finish auto deploy screen (iam configure script) (#28621) * Define the return type * Add endpoint for config script * Store the entire integration object instead of just the name * Build the correct script string, renames, emit event * Enable auto deploy as default * Fix script endpoint and update story * Add regex check, update story * Touch ups, add test * Address CR * Remove sudo from bash command * Make into ui friendly object * [WebDiscover] Determine if IAM policy setup step can be skipped (#29724) * Prevent going back from access screen if deploying got skipped * Configuring perms for the user can take some time An error can return if a user tried to deploy before the changes are fully propagated. Notify the user that this can be a reason why an error returned and try again. * Check if IAM policy already configured with new dbs Clarify poller callback with comment Make IAMPolicy screen optional
do not merge until the following has merged:
This pr:
manual
andauto
deployintegration.name
but now we pass around the full object because we also need to access theroleArn
for the cfg script