Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Dec 13, 2023
1 parent 4ece670 commit 5bd6747
Show file tree
Hide file tree
Showing 44 changed files with 182 additions and 148 deletions.
11 changes: 0 additions & 11 deletions src/mapping/aws/resource/aws_iam_service_specific_credential.json

This file was deleted.

11 changes: 0 additions & 11 deletions src/mapping/aws/resource/aws_imagebuilder_container_recipe.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
[
{
"apply": [],
"apply": [
"inspector2:UpdateOrganizationConfiguration",
"inspector2:DescribeOrganizationConfiguration"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"modify": [
"inspector2:UpdateOrganizationConfiguration"
],
"plan": []
}
]
11 changes: 0 additions & 11 deletions src/mapping/aws/resource/aws_internetmonitor_monitor.json

This file was deleted.

11 changes: 0 additions & 11 deletions src/mapping/aws/resource/aws_kms_custom_key_store.json

This file was deleted.

11 changes: 0 additions & 11 deletions src/mapping/aws/resource/aws_kms_external_key.json

This file was deleted.

11 changes: 0 additions & 11 deletions src/mapping/aws/resource/aws_lambda_code_signing_config.json

This file was deleted.

11 changes: 0 additions & 11 deletions src/mapping/aws/resource/aws_signer_signing_profile.json

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"apply": [
"iam:CreateServiceSpecificCredential",
"iam:ListServiceSpecificCredentials",
"iam:DeleteServiceSpecificCredential"
],
"attributes": {
"tags": []
},
"destroy": [
"iam:DeleteServiceSpecificCredential"
],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"imagebuilder:CreateContainerRecipe",
"imagebuilder:GetContainerRecipe",
"imagebuilder:GetImage",
"imagebuilder:CreateImageRecipe",
"imagebuilder:DeleteContainerRecipe",
"imagebuilder:DeleteImageRecipe"
],
"attributes": {
"tags": []
},
"destroy": [
"imagebuilder:DeleteContainerRecipe",
"imagebuilder:DeleteImageRecipe"],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"internetmonitor:CreateMonitor",
"internetmonitor:GetMonitor",
"internetmonitor:UpdateMonitor",
"internetmonitor:DeleteMonitor"
],
"attributes": {
"tags": [
"internetmonitor:TagResource",
"internetmonitor:UntagResource"]
},
"destroy": [
"internetmonitor:DeleteMonitor"],
"modify": [
"internetmonitor:UpdateMonitor"],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[
{
"apply": [],
"apply": [
"kms:Encrypt"
],
"attributes": {
"tags": []
},
Expand Down
20 changes: 20 additions & 0 deletions src/mapping/aws/resource/kms/aws_kms_custom_key_store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"kms:CreateCustomKeyStore",
"kms:DeleteCustomKeyStore",
"kms:UpdateCustomKeyStore",
"kms:DescribeCustomKeyStores"
],
"attributes": {
"tags": []
},
"destroy": [
"kms:DeleteCustomKeyStore"
],
"modify": [
"kms:UpdateCustomKeyStore"
],
"plan": []
}
]
19 changes: 19 additions & 0 deletions src/mapping/aws/resource/kms/aws_kms_external_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"apply": [
"kms:CreateKey",
"iam:CreateServiceLinkedRole",
"kms:GetParametersForImport",
"kms:GetKeyPolicy",
"kms:ListResourceTags",
"kms:ScheduleKeyDeletion",
"kms:ImportKeyMaterial"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[
{
"apply": [],
"apply": [
"kms:ReplicateKey"
],
"attributes": {
"tags": []
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"apply": [
"lambda:CreateCodeSigningConfig",
"lambda:GetCodeSigningConfig",
"lambda:DeleteCodeSigningConfig"
],
"attributes": {
"tags": []
},
"destroy": [
"lambda:DeleteCodeSigningConfig"
],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[
{
"apply": [],
"apply": [
"signer:StartSigningJob",
"signer:DescribeSigningJob"
],
"attributes": {
"tags": []
},
Expand Down
18 changes: 18 additions & 0 deletions src/mapping/aws/resource/signer/aws_signer_signing_profile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"apply": [
"signer:GetSigningProfile",
"signer:RevokeSigningProfile",
"signer:PutSigningProfile",
"signer:CancelSigningProfile"
],
"attributes": {
"tags": []
},
"destroy": [
"signer:RevokeSigningProfile",
"signer:CancelSigningProfile"],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"apply": [
"signer:ListProfilePermissions",
"signer:AddProfilePermission",
"signer:RemoveProfilePermission"
],
"attributes": {
"tags": []
},
"destroy": [
"signer:RemoveProfilePermission"
],
"modify": [],
"plan": []
}
]
1 change: 0 additions & 1 deletion terraform/aws/aws_elastic_beanstalk_application_version.tf

This file was deleted.

5 changes: 0 additions & 5 deletions terraform/aws/aws_elastic_beanstalk_configuration_template.tf

This file was deleted.

10 changes: 0 additions & 10 deletions terraform/aws/aws_elastic_beanstalk_environment.tf

This file was deleted.

1 change: 0 additions & 1 deletion terraform/aws/aws_elb_attachment.tf

This file was deleted.

1 change: 0 additions & 1 deletion terraform/aws/aws_internet_gateway_attachment.tf

This file was deleted.

3 changes: 0 additions & 3 deletions terraform/aws/aws_kms_custom_key_store.tf

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
resource "aws_ec2_availability_zone_group" "pike" {
provider= aws.central
group_name = "us-west-2-lax-1"
opt_in_status = "opted-in"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "aws_iam_service_specific_credential" "pike" {
service_name = "codecommit.amazonaws.com"
user_name = "arn:aws:iam::680235478471:user/basic"
user_name = "jameswoolfenden"
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "aws_imagebuilder_container_recipe" "pike" {
version = "1.0.0"

container_type = "DOCKER"
parent_image = "arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x"
parent_image = "jameswoolfenden/pike"

target_repository {
repository_name = "arn:aws:ecr:eu-west-2:680235478471:repository/pike"
Expand Down Expand Up @@ -49,4 +49,5 @@ resource "aws_imagebuilder_component" "example" {
name = "example"
platform = "Linux"
version = "1.0.0"
}
}

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ resource "aws_kms_ciphertext" "pike" {

plaintext = <<EOF
{
"client_id": "e587dbae22222f55da22",
"client_secret": "8289575d00000ace55e1815ec13673955721b8a5"
"client_id": "e000dbae00000f00da00",
"client_secret": "0000000d00000ace00e0000ec00000000000b0a0"
}
EOF
}
3 changes: 3 additions & 0 deletions terraform/aws/backup/aws_kms_custom_key_store.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "aws_kms_custom_key_store" "pike" {
custom_key_store_name = "pike"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ resource "aws_kms_external_key" "pike" {
multi_region = true
enabled = true

key_material_base64 = "dGhpcyBpcyBteSBrZXk="
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ resource "aws_kms_replica_external_key" "pike" {
deletion_window_in_days = 7
primary_key_arn = aws_kms_external_key.pike.arn

key_material_base64 = "⡨Võb¹_^V<95>Ob<94>\\¬µxZî<82>1àíί^MpªQ^Bd{"
key_material_base64 = ""
}
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 5bd6747

Please sign in to comment.