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

⭐ Create AWS resource aws.ec2.instances {iamInstanceProfile} #4767

Merged
merged 20 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions providers/aws/resources/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ aws.iam {
virtualMfaDevices() []aws.iam.virtualmfadevice
// List of server certificates stored in IAM
serverCertificates() []dict
instanceProfiles() []aws.iam.instanceProfile
}

// Entry in AWS IAM credential report
Expand Down Expand Up @@ -797,6 +798,22 @@ private aws.iam.user @defaults("arn name") {
loginProfile() aws.iam.loginProfile
}

// AWS IAM instance profile
private aws.iam.instanceProfile @defaults("arn instanceProfileId") {
// ARN of the IAM instance profile
arn string
// Time when the instance profile was created
createDate time
// ID of the IAM instance profile
instanceProfileId string
// Name of the instance profile
instanceProfileName string
// Tags of the instance profile
tags map[string]string
// role attached to the instanceProfile
iamRoles() []aws.iam.role
}

// AWS IAM login profile for a user
private aws.iam.loginProfile @defaults("createdAt") {
// Time when the login profile was created
Expand Down Expand Up @@ -3014,6 +3031,8 @@ private aws.ec2.instance @defaults("instanceId region state instanceType archite
instanceType string
// Tags on the instance
tags map[string]string
// Instance profile of the instance
iamInstanceProfile() aws.iam.instanceProfile
// Image that was used for the instance
image() aws.ec2.image
// Launch time of the instance
Expand Down
184 changes: 184 additions & 0 deletions providers/aws/resources/aws.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions providers/aws/resources/aws.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,7 @@ resources:
httpTokens: {}
hypervisor:
min_mondoo_version: 9.0.0
iamInstanceProfile: {}
image: {}
instanceId: {}
instanceLifecycle:
Expand Down Expand Up @@ -1893,6 +1894,8 @@ resources:
attachedPolicies: {}
credentialReport: {}
groups: {}
instanceProfiles:
min_mondoo_version: 9.0.0
policies: {}
roles: {}
serverCertificates: {}
Expand Down Expand Up @@ -2003,6 +2006,20 @@ resources:
platform:
name:
- aws
aws.iam.instanceProfile:
fields:
arn: {}
createDate: {}
iamRole: {}
mm-weber marked this conversation as resolved.
Show resolved Hide resolved
iamRoles: {}
instanceProfileId: {}
instanceProfileName: {}
tags: {}
is_private: true
min_mondoo_version: 9.0.0
platform:
name:
- aws
aws.iam.loginProfile:
fields:
createdAt: {}
Expand Down
Loading
Loading