misc: documentation changes and minor UI adjustments

This commit is contained in:
Sheen Capadngan
2024-05-23 21:03:48 +08:00
parent de2a5b4255
commit b75d601754
3 changed files with 11 additions and 4 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

After

Width:  |  Height:  |  Size: 142 KiB

@@ -72,6 +72,9 @@ Prerequisites:
<ParamField path="AWS Region" type="string" required> <ParamField path="AWS Region" type="string" required>
The region that you want to integrate with in AWS Secrets Manager. The region that you want to integrate with in AWS Secrets Manager.
</ParamField> </ParamField>
<ParamField path="Mapping Behavior" type="string" required>
How you want the integration to map the secrets. The selected value could be either one to one or one to many.
</ParamField>
<ParamField path="AWS SM Secret Name" type="string" required> <ParamField path="AWS SM Secret Name" type="string" required>
The secret name/path in AWS into which you want to sync the secrets from Infisical. The secret name/path in AWS into which you want to sync the secrets from Infisical.
</ParamField> </ParamField>
@@ -73,11 +73,11 @@ const awsRegions = [
const mappingBehaviors = [ const mappingBehaviors = [
{ {
label: "Many to One - secrets will be mapped to one AWS Secret", label: "Many to One (All Infisical secrets will be mapped to a single AWS secret)",
value: IntegrationMappingBehavior.MANY_TO_ONE value: IntegrationMappingBehavior.MANY_TO_ONE
}, },
{ {
label: "One to One - secrets will be mapped to individual AWS secrets", label: "One to One - (Each Infisical secret will be mapped to its own AWS secret)",
value: IntegrationMappingBehavior.ONE_TO_ONE value: IntegrationMappingBehavior.ONE_TO_ONE
} }
]; ];
@@ -277,10 +277,14 @@ export default function AWSSecretManagerCreateIntegrationPage() {
onValueChange={(val) => { onValueChange={(val) => {
setSelectedMappingBehavior(val as IntegrationMappingBehavior); setSelectedMappingBehavior(val as IntegrationMappingBehavior);
}} }}
className="w-full border border-mineshaft-500" className="w-full border border-mineshaft-500 text-left"
> >
{mappingBehaviors.map((option) => ( {mappingBehaviors.map((option) => (
<SelectItem value={option.value} key={`aws-environment-${option.value}`}> <SelectItem
value={option.value}
className="text-left"
key={`aws-environment-${option.value}`}
>
{option.label} {option.label}
</SelectItem> </SelectItem>
))} ))}