Commit 5ee4a94
authored
Fix parameter validation upon install/update (#554)
* Fix parameter validation upon install/update
**Why?**
When installing or updating ADF, it did not validate the input given by
the user. In some situations, this implied that it would attempt to
install/update failing minutes later. Or it might not work at all after
the CloudFormation deployment of the SAR template reports back as if
all went well.
One of the parameters, the deployment region was particularly dangerous
to leave blank on an update. As that would change the bucket name that
would be used by ADF to share resources.
**What?**
Added validations to the template.
The account alias regex was found here [0].
While the role name requirements were found at [1].
* [0](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateAccountAlias.html)
* [1](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-rolename)
* Improve regex validation according to review
The Account Name requirements were fount at [0].
* [0](https://docs.aws.amazon.com/organizations/latest/APIReference/API_Account.html)1 parent a6b8d58 commit 5ee4a94
1 file changed
Lines changed: 34 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
47 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
52 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
53 | 68 | | |
54 | 69 | | |
55 | 70 | | |
| 71 | + | |
56 | 72 | | |
57 | 73 | | |
58 | | - | |
59 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
63 | | - | |
| 80 | + | |
| 81 | + | |
64 | 82 | | |
65 | 83 | | |
66 | 84 | | |
67 | 85 | | |
68 | 86 | | |
69 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
70 | 92 | | |
71 | 93 | | |
72 | | - | |
73 | 94 | | |
74 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
75 | 100 | | |
76 | 101 | | |
77 | 102 | | |
| |||
0 commit comments