-
Notifications
You must be signed in to change notification settings - Fork 5
/
schema.yaml
3490 lines (2949 loc) · 119 KB
/
schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# yaml-language-server: $schema=https://raw.githubusercontent.com/pulumi/pulumi/master/pkg/codegen/schema/pulumi.json
---
name: aws-iam
types:
"aws-iam:index:EKSServiceAccount":
description: "EKS cluster and k8s ServiceAccount pairs. Each EKS cluster can have multiple k8s ServiceAccount."
type: object
properties:
name:
description: "Name of the EKS cluster."
type: string
serviceAccounts:
description: "Service accounts to pair with the cluster."
type: array
items:
type: string
"aws-iam:index:AccountPasswordPolicy":
type: object
description: Options to specify complexity requirements and mandatory rotation periods for your IAM users' passwords.
properties:
maxAge:
type: integer
description: |
The number of days that an user password is valid. If not set or a value of `0` is provided, then
passwords will not expire.
minimumLength:
type: integer
description: |
Minimum length to require for user passwords. Defaults to `8` if not set or
the provided value is invalid. Valid values are between 6 and 128.
allowUsersToChange:
type: boolean
description: |
Whether to allow users to change their own password.
hardExpiry:
type: boolean
description: |
Whether users are prevented from setting a new password after their password has
expired (i.e. require administrator reset).
reusePrevention:
type: integer
description: |
The number of previous passwords that users are prevented from reusing. If not set or a
value of `0` is provided, no reuse prevention policy will be used.
requireLowercaseCharacters:
type: boolean
description: |
Whether to require lowercase characters for user passwords.
requireUppercaseCharacters:
type: boolean
description: |
Whether to require uppercase characters for user passwords.
requireNumbers:
type: boolean
description: |
Whether to require numbers for user passwords.
requireSymbols:
type: boolean
description: |
Whether to require symbols for user passwords.
required:
- allowUsersToChange
- hardExpiry
- requireLowercaseCharacters
- requireUppercaseCharacters
- requireNumbers
- requireSymbols
"aws-iam:index:RoleWithMFA":
type: object
description: An IAM role that requires MFA.
properties:
name:
type: string
description: IAM role with the access. Defaults to 'admin'.
path:
type: string
description: Path of the IAM role. Defaults to '/'.
policyArns:
type: array
description: List of policy ARNs to use for the role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for the role.
tags:
type: object
description: A map of tags to add.
additionalProperties:
type: string
requiresMfa:
type: boolean
description: Whether the role requires MFA.
"aws-iam:index:EKSServiceAccountRole":
type: object
properties:
name:
type: string
description: IAM role name.
namePrefix:
type: string
description: IAM role name prefix.
path:
type: string
description: Path of admin IAM role.
policyArns:
type: array
description: List of policy ARNs to use for the role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for the role.
description:
type: string
description: IAM Role description.
"aws-iam:index:Role":
type: object
description: An IAM role.
properties:
name:
type: string
description: IAM role name.
namePrefix:
type: string
description: IAM role name prefix.
path:
type: string
description: Path of admin IAM role. Defaults to '/'.
policyArns:
type: array
description: List of policy ARNs to use for the role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for the role.
"aws-iam:index:AdminRole":
type: object
description: The admin role.
properties:
name:
type: string
description: IAM role with admin access.
default: admin
path:
type: string
description: Path of admin IAM role. Defaults to '/'
policyArns:
type: array
description: List of policy ARNs to use for admin role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for admin role.
tags:
type: object
description: A map of tags to add.
additionalProperties:
type: string
"aws-iam:index:AdminRoleWithMFA":
type: object
description: The admin role.
properties:
name:
type: string
description: IAM role with admin access.
path:
type: string
description: Path of admin IAM role.
policyArns:
type: array
description: List of policy ARNs to use for admin role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for admin role.
tags:
type: object
description: A map of tags to add.
additionalProperties:
type: string
requiresMfa:
type: boolean
description: Whether admin role requires MFA.
"aws-iam:index:PoweruserRole":
type: object
description: The poweruser role.
properties:
name:
type: string
description: IAM role with poweruser access.
path:
type: string
description: Path of poweruser IAM role.
policyArns:
type: array
description: List of policy ARNs to use for poweruser role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for poweruser role.
tags:
type: object
description: A map of tags to add.
additionalProperties:
type: string
"aws-iam:index:PoweruserRoleWithMFA":
type: object
description: The poweruser role.
properties:
name:
type: string
description: IAM role with poweruser access.
path:
type: string
description: Path of poweruser IAM role.
policyArns:
type: array
description: List of policy ARNs to use for poweruser role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for poweruser role.
tags:
type: object
description: A map of tags to add.
additionalProperties:
type: string
requiresMfa:
type: boolean
description: Whether admin role requires MFA.
"aws-iam:index:ReadonlyRole":
type: object
description: The readonly role.
properties:
name:
type: string
description: IAM role with readonly access.
path:
type: string
description: Path of readonly IAM role. Defaults to '/'.
policyArns:
type: array
description: List of policy ARNs to use for readonly role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for readonly role.
tags:
type: object
description: A map of tags to add.
additionalProperties:
type: string
"aws-iam:index:ReadonlyRoleWithMFA":
type: object
description: The readonly role.
properties:
name:
type: string
description: IAM role with readonly access.
path:
type: string
description: Path of readonly IAM role. Defaults to '/'.
policyArns:
type: array
description: List of policy ARNs to use for readonly role.
items:
type: string
permissionsBoundaryArn:
type: string
description: Permissions boundary ARN to use for readonly role.
tags:
type: object
description: A map of tags to add.
additionalProperties:
type: string
requiresMfa:
type: boolean
description: Whether admin role requires MFA.
"aws-iam:index:OIDCProvider":
type: object
properties:
providerArn:
type: string
namespaceServiceAccounts:
type: array
items:
type: string
"aws-iam:index:EKSCertManagerPolicy":
type: object
description: The Cert Manager IAM policy to attach to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the Cert Manager IAM policy to the role.
hostedZoneArns:
type: array
description: |
Route53 hosted zone ARNs to allow Cert manager to manage records. If not provided,
the default ARN "arn:aws:route53:::hostedzone/*" will be applied.
items:
type: string
required:
- attach
"aws-iam:index:EKSClusterAutoscalerPolicy":
type: object
description: The Cluster Autoscaler IAM policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the Cluster Autoscaler IAM policy to the role.
clusterIds:
type: array
description: List of cluster IDs to appropriately scope permissions within the Cluster Autoscaler IAM policy.
items:
type: string
required:
- attach
- clusterIds
"aws-iam:index:EKSEBSCSIPolicy":
type: object
description: The EBS CSI IAM policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the EBS CSI IAM policy to the role.
kmsCmkIds:
type: array
description: KMS CMK IDs to allow EBS CSI to manage encrypted volumes.
items:
type: string
required:
- attach
- kmsCmkIds
"aws-iam:index:EKSEFSCSIPolicy":
type: object
description: The EFS CSI IAM policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the EFS CSI IAM policy to the role.
required:
- attach
"aws-iam:index:EKSExternalDNSPolicy":
type: object
description: The External DNS IAM policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the External DNS IAM policy to the role.
hostedZoneArns:
type: array
description: |
Route53 hosted zone ARNs to allow External DNS to manage records. If not provided,
the default ARN "arn:aws:route53:::hostedzone/*" will be applied.
items:
type: string
required:
- attach
"aws-iam:index:EKSExternalSecretsPolicy":
type: object
description: The External Secrets policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the External Secrets policy to the role.
ssmParameterArns:
type: array
description: |
List of Systems Manager Parameter ARNs that contain secrets to mount using External Secrets. If not provided,
the default ARN "arn:aws:ssm:*:*:parameter/*" will be applied.
items:
type: string
secretsManagerArns:
type: array
description: List of Secrets Manager ARNs that contain secrets to mount using External Secrets. If not provided,
the default ARN "arn:aws:secretsmanager:*:*:secret:*" will be applied.
items:
type: string
required:
- attach
"aws-iam:index:FSxLustreCSIPolicy":
type: object
description: The FSx for Lustre CSI Driver IAM policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the FSx for Lustre CSI Driver IAM policy to the role.
serviceRoleArns:
type: array
description: |
Service role ARNs to allow FSx for Lustre CSI create and manage FSX for Lustre service linked roles. If not provided,
the default ARN "arn:aws:iam::*:role/aws-service-role/s3.data-source.lustre.fsx.amazonaws.com/*" will be applied.
items:
type: string
required:
- attach
"aws-iam:index:EKSKarpenterControllerPolicy":
type: object
description: The Karpenter Controller policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the Karpenter Controller policy to the role.
clusterId:
type: string
description: Cluster ID where the Karpenter controller is provisioned/managing.
default: "*"
tagKey:
type: string
description: Tag key (`{key = value}`) applied to resources launched by Karpenter through the Karpenter provisioner.
default: "karpenter.sh/discovery"
ssmParameterArns:
type: array
description: |
List of SSM Parameter ARNs that contain AMI IDs launched by Karpenter. If not provided,
the default ARN "arn:aws:ssm:*:*:parameter/aws/service/*" will be applied.
items:
type: string
nodeIamRoleArns:
type: array
description: |
List of node IAM role ARNs Karpenter can use to launch nodes. If not provided,
the default ARN "*" will be applied.
items:
type: string
subnetAccountId:
type: string
description: Account ID of where the subnets Karpenter will utilize resides. Used when subnets are shared from another account.
required:
- attach
"aws-iam:index:EKSLoadBalancerPolicy":
type: object
description: The Load Balancer policy.
properties:
controller:
type: boolean
description: Determines whether to attach the Load Balancer Controller policy to the role.
targetGroupBindingOnly:
type: boolean
description: Determines whether to attach the Load Balancer Controller policy for the TargetGroupBinding only.
"aws-iam:index:EKSAppmeshPolicy":
type: object
description: The Appmesh policies.
properties:
controller:
type: boolean
description: Determines whether to attach the Appmesh Controller policy to the role.
envoyProxy:
type: boolean
description: Determines whether to attach the Appmesh envoy proxy policy to the role.
"aws-iam:index:EKSAmazonManagedServicePrometheusPolicy":
type: object
description: The Amazon Managed Service for Prometheus IAM policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the Amazon Managed Service for Prometheus IAM policy to the role.
workspaceArns:
type: array
description: |
List of AMP Workspace ARNs to read and write metrics. If not provided, a default ARN of "*"
will be provided.
items:
type: string
required:
- attach
"aws-iam:index:EKSVeleroPolicy":
type: object
description: The Velero IAM policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the Velero IAM policy to the role.
s3BucketArns:
type: array
description: |
List of S3 Bucket ARNs that Velero needs access to in order to backup and restore cluster resources.
If not provided, a default ARN of "*" will be provided.
items:
type: string
required:
- attach
"aws-iam:index:EKSVPNCNIPolicy":
type: object
description: The VPC CNI IAM policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the VPC CNI IAM policy to the role.
enableIpv4:
type: boolean
description: Determines whether to enable IPv4 permissions for VPC CNI policy.
enableIpv6:
type: boolean
description: Determines whether to enable IPv6 permissions for VPC CNI policy.
required:
- attach
"aws-iam:index:EKSNodeTerminationHandlerPolicy":
type: object
description: The Node Termination Handler policy to the role.
properties:
attach:
type: boolean
description: Determines whether to attach the Node Termination Handler policy to the role.
sqsQueueArns:
type: array
description: |
List of SQS ARNs that contain node termination events. If not provided, then a default
ARN of "*" will be provided.
items:
type: string
required:
- attach
"aws-iam:index:EKSRolePolicies":
type: object
description: The different policies to attach to the role.
properties:
certManager:
description: The Cert Manager IAM policy.
$ref: "#/types/aws-iam:index:EKSCertManagerPolicy"
clusterAutoScaling:
description: The Cluster Autoscaler IAM policy.
$ref: "#/types/aws-iam:index:EKSClusterAutoscalerPolicy"
ebsCsi:
description: The EBS CSI IAM policy.
$ref: "#/types/aws-iam:index:EKSEBSCSIPolicy"
efsCsi:
description: The EFS CSI IAM policy.
$ref: "#/types/aws-iam:index:EKSEFSCSIPolicy"
externalDns:
description: The External DNS IAM policy.
$ref: "#/types/aws-iam:index:EKSExternalDNSPolicy"
externalSecrets:
description: The External Secrets policy.
$ref: "#/types/aws-iam:index:EKSExternalSecretsPolicy"
fsxLustreCsi:
description: The FSx for Lustre CSI Driver IAM policy.
$ref: "#/types/aws-iam:index:FSxLustreCSIPolicy"
karpenterController:
description: The Karpenter Controller policy.
$ref: "#/types/aws-iam:index:EKSKarpenterControllerPolicy"
loadBalancer:
description: The Load Balancer policy.
$ref: "#/types/aws-iam:index:EKSLoadBalancerPolicy"
appmesh:
description: The Appmesh policies.
$ref: "#/types/aws-iam:index:EKSAppmeshPolicy"
amazonManagedServicePrometheus:
description: The Amazon Managed Service for Prometheus IAM policy.
$ref: "#/types/aws-iam:index:EKSAmazonManagedServicePrometheusPolicy"
velero:
description: The Velero IAM policy.
$ref: "#/types/aws-iam:index:EKSVeleroPolicy"
vpnCni:
description: The VPC CNI IAM policy to the role.
$ref: "#/types/aws-iam:index:EKSVPNCNIPolicy"
nodeTerminationHandler:
description: The Node Termination Handler policy to the role.
$ref: "#/types/aws-iam:index:EKSNodeTerminationHandlerPolicy"
"aws-iam:index:UserOutput":
type: object
description: The IAM user.
properties:
name:
type: string
description: The user's name.
arn:
type: string
description: The ARN assigned by AWS for this user.
uniqueId:
type: string
description: The unique ID assigned by AWS.
loginProfileKeyFingerprint:
type: string
description: The fingerprint of the PGP key used to encrypt the password.
loginProfileEncryptedPassword:
type: string
description: The encrypted password, base64 encoded.
loginProfilePassword:
type: string
description: The user password.
sshKeySshPublicKeyId:
type: string
description: The unique identifier for the SSH public key
sshKeyFingerprint:
type: string
description: The unique identifier for the SSH public key.
required:
- name
- arn
- uniqueId
"aws-iam:index:AccessKeyOutput":
type: object
description: The IAM access key.
properties:
id:
type: string
description: The access key ID.
secret:
type: string
description: The access key secret.
keyFingerprint:
type: string
description: The fingerprint of the PGP key used to encrypt the secret.
encryptedSecret:
type: string
description: The encrypted secret, base64 encoded.
sesSmtpPasswordV4:
type: string
description: The secret access key converted into an SES SMTP password by applying AWS's Sigv4 conversion algorithm.
status:
type: string
description: Active or Inactive. Keys are initially active, but can be made inactive by other means.
"aws-iam:index:KeybaseOutput":
type: object
properties:
passwordDecryptCommand:
type: string
description: Decrypt user password command.
passwordPgpMessage:
type: string
description: Encrypted password
secretKeyDecryptCommand:
type: string
description: Decrypt access secret key command.
secretKeyPgpMessage:
type: string
description: Encrypted access secret key.
resources:
"aws-iam:index:User":
description: |
This resources helps you create an IAM User, Login Profile, and Access Key. Additionally you
can optionally upload an IAM SSH User Public Key.
{{% examples %}}
## Example Usage
{{% example %}}
### User
```typescript
import * as iam from "@pulumi/aws-iam";
export const user = new iam.User("aws-iam-example-user", {
name: "pulumipus",
forceDestroy: true,
pgpKey: "keybase:test",
passwordResetRequired: false,
});
```
```python
import pulumi
import pulumi_aws_iam as iam
user = iam.User(
'user',
name='pulumipus',
force_destroy=True,
pgp_key='keybase:test',
password_reset_required=False,
)
pulumi.export('user', user)
```
```go
package main
import (
iam "github.com/pulumi/pulumi-aws-iam/sdk/go/aws-iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
user, err := iam.NewUser(ctx, "user", &iam.UserArgs{
Name: pulumi.String("pulumipus"),
ForceDestroy: pulumi.BoolPtr(true),
PgpKey: pulumi.String("keybase:test"),
PasswordResetRequired: pulumi.BoolPtr(false),
})
if err != nil {
return err
}
ctx.Export("user", user)
return nil
})
}
```
```csharp
using Pulumi;
using Pulumi.AwsIam;
using Pulumi.AwsIam.Inputs;
class MyStack : Stack
{
public MyStack()
{
var user = new User("user", new UserArgs
{
Name = "pulumipus",
ForceDestroy = true,
PgpKey = "keybase:test",
PasswordResetRequired = false,
});
this.User = Output.Create<User>(user);
}
[Output]
public Output<User> User { get; set; }
}
```
```yaml
name: awsiam-yaml
runtime: yaml
resources:
user:
type: "aws-iam:index:User"
properties:
name: "pulumipus"
forceDestroy: true
pgpKey: "keybase:test"
passwordResetRequired: false
outputs:
user: ${user}
```
{{ /example }}
{{% examples %}}
isComponent: true
inputProperties:
name:
type: string
description: Desired name for the IAM user.
path:
type: string
description: Desired path for the IAM user.
default: "/"
forceDestroy:
type: boolean
description: When destroying this user, destroy even if it has non-Pulumi-managed IAM access keys, login profile or MFA devices. Without forceDestroy a user with non-Pulumi-managed access keys and login profile will fail to be destroyed.
pgpKey:
type: string
description: Either a base-64 encoded PGP public key, or a keybase username in the form `keybase:username`. Used to encrypt password and access key.
passwordResetRequired:
type: boolean
description: Whether the user should be forced to reset the generated password on first login.
passwordLength:
type: integer
description: The length of the generated password
uploadIamUserSshKey:
type: boolean
description: Whether to upload a public ssh key to the IAM user.
sshKeyEncoding:
type: string
description: Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM.
default: "SSH"
sshPublicKey:
type: string
description: The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.
permissionsBoundary:
type: string
description: The ARN of the policy that is used to set the permissions boundary for the user.
tags:
type: object
description: A map of tags to add.
additionalProperties:
type: string
requiredInputs:
- name
properties:
userInfo:
description: The IAM user.
$ref: "#/types/aws-iam:index:UserOutput"
accessKey:
description: The IAM access key.
$ref: "#/types/aws-iam:index:AccessKeyOutput"
pgpKey:
type: string
description: PGP key used to encrypt sensitive data for this user (if empty - secrets are not encrypted).
keybase:
$ref: "#/types/aws-iam:index:KeybaseOutput"
required:
- userInfo
- accessKey
- pgpKey
- keybase
"aws-iam:index:RoleForServiceAccountsEks":
description: |
This resources helps you create an IAM role which can be assumed by AWS EKS ServiceAccounts with optional policies for
commonly used controllers/custom resources within EKS. The optional policies you can specify are:
- Cert-Manager
- Cluster Autoscaler
- EBS CSI Driver
- EFS CSI Driver
- External DNS
- External Secrets
- FSx for Lustre CSI Driver
- Karpenter
- Load Balancer Controller
- Load Balancer Controller Target Group Binding Only
- App Mesh Controller
- App Mesh Envoy Proxy
- Managed Service for Prometheus
- Node Termination Handler
- Velero
- VPC CNI
{{% examples %}}
## Example Usage
{{% example %}}
## VPC CNI
```typescript
import * as iam from "@pulumi/aws-iam";
export const roleForServiceAccountsEks = new iam.RoleForServiceAccountsEks("aws-iam-example-role-for-service-accounts-eks", {
role: {
name: "vpc-cni"
},
tags: {
Name: "vpc-cni-irsa",
},
oidcProviders: {
main: {
providerArn: "arn:aws:iam::012345678901:oidc-provider/oidc.eks.us-east-1.amazonaws.com/id/5C54DDF35ER19312844C7333374CC09D",
namespaceServiceAccounts: ["default:my-app", "canary:my-app"],
}
},
policies: {
vpnCni: {
attach: true,
enableIpv4: true,
},
},
});
```
```python
import pulumi
import pulumi_aws_iam as iam
role_for_service_account_eks = iam.RoleForServiceAccountsEks(
'role_for_service_account_eks',
role=iam.RoleArgs(
name='vpc-cni'
),
tags={
'Name': 'vpc-cni-irsa',
},
oidc_providers={
'main': iam.OIDCProviderArgs(
provider_arn='arn:aws:iam::012345678901:oidc-provider/oidc.eks.us-east-1.amazonaws.com/id/5C54DDF35ER19312844C7333374CC09D',
namespace_service_accounts=['default:my-app', 'canary:my-app'],
),
},
policies=iam.EKSRolePoliciesArgs(
vpn_cni=iam.EKSVPNCNIPolicyArgs(
attach=True,
enable_ipv4=True,
),
),
)
pulumi.export('role_for_service_account_eks', role_for_service_account_eks)
```
```go
package main
import (
iam "github.com/pulumi/pulumi-aws-iam/sdk/go/aws-iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)