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

DSOS-2447: add ssm:StartSession #4415

Merged
merged 3 commits into from
Jan 2, 2024
Merged

DSOS-2447: add ssm:StartSession #4415

merged 3 commits into from
Jan 2, 2024

Conversation

jnqn
Copy link
Contributor

@jnqn jnqn commented Jan 2, 2024

No description provided.

@jnqn jnqn requested review from a team as code owners January 2, 2024 14:06
@github-actions github-actions bot added the environments-repository Used to exclude PRs from this repo in our Slack PR update label Jan 2, 2024
@jnqn jnqn had a problem deploying to hmpps-oem-development January 2, 2024 14:07 — with GitHub Actions Error
Copy link
Contributor

github-actions bot commented Jan 2, 2024

TFSEC Scan Success

Show Output
*****************************

TFSEC will check the following folders:
terraform/environments/hmpps-oem

*****************************

Running TFSEC in terraform/environments/hmpps-oem
Excluding the following checks: AWS095

======================================================
tfsec is joining the Trivy family

tfsec will continue to remain available 
for the time being, although our engineering 
attention will be directed at Trivy going forward.

You can read more here: 
https://github.com/aquasecurity/tfsec/discussions/1994
======================================================
  timings
  ──────────────────────────────────────────
  disk i/o             1.568182ms
  parsing              138.196803ms
  adaptation           109.704µs
  checks               8.992665ms
  total                148.867354ms

  counts
  ──────────────────────────────────────────
  modules downloaded   0
  modules processed    5
  blocks processed     272
  files read           72

  results
  ──────────────────────────────────────────
  passed               1
  ignored              0
  critical             0
  high                 0
  medium               0
  low                  0


No problems detected!

tfsec_exitcode=0

Checkov Scan Success

Show Output
*****************************

Checkov will check the following folders:
terraform/environments/hmpps-oem

*****************************

Running Checkov in terraform/environments/hmpps-oem
terraform scan results:

Passed checks: 90, Failed checks: 0, Skipped checks: 19


checkov_exitcode=0

CTFLint Scan Failed

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.2.1)
tflint will check the following folders:
terraform/environments/hmpps-oem

*****************************

Running tflint in terraform/environments/hmpps-oem
Excluding the following checks: terraform_unused_declarations
Failed to prepare rule checking; terraform/environments/hmpps-oem/locals.tf:11,58-77: Invalid index; The given key does not identify an element in this collection value., and 24 other diagnostic(s):

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

tflint_exitcode=1

@jnqn jnqn had a problem deploying to hmpps-oem-development January 2, 2024 14:18 — with GitHub Actions Failure
@jnqn jnqn temporarily deployed to hmpps-oem-test January 2, 2024 14:20 — with GitHub Actions Inactive
@jnqn jnqn had a problem deploying to hmpps-oem-development January 2, 2024 14:20 — with GitHub Actions Failure
Copy link
Contributor

github-actions bot commented Jan 2, 2024

TFSEC Scan Success

Show Output
*****************************

TFSEC will check the following folders:
terraform/environments/hmpps-oem

*****************************

Running TFSEC in terraform/environments/hmpps-oem
Excluding the following checks: AWS095

======================================================
tfsec is joining the Trivy family

tfsec will continue to remain available 
for the time being, although our engineering 
attention will be directed at Trivy going forward.

You can read more here: 
https://github.com/aquasecurity/tfsec/discussions/1994
======================================================
  timings
  ──────────────────────────────────────────
  disk i/o             1.64237ms
  parsing              140.669552ms
  adaptation           107.351µs
  checks               3.236618ms
  total                145.655891ms

  counts
  ──────────────────────────────────────────
  modules downloaded   0
  modules processed    5
  blocks processed     272
  files read           72

  results
  ──────────────────────────────────────────
  passed               1
  ignored              0
  critical             0
  high                 0
  medium               0
  low                  0


No problems detected!

tfsec_exitcode=0

Checkov Scan Success

Show Output
*****************************

Checkov will check the following folders:
terraform/environments/hmpps-oem

*****************************

Running Checkov in terraform/environments/hmpps-oem
terraform scan results:

Passed checks: 90, Failed checks: 0, Skipped checks: 19


checkov_exitcode=0

CTFLint Scan Failed

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.2.1)
tflint will check the following folders:
terraform/environments/hmpps-oem

*****************************

Running tflint in terraform/environments/hmpps-oem
Excluding the following checks: terraform_unused_declarations
Failed to prepare rule checking; terraform/environments/hmpps-oem/locals.tf:11,58-77: Invalid index; The given key does not identify an element in this collection value., and 24 other diagnostic(s):

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals_security_groups.tf line 33, in locals:
  33:   security_group_cidrs = local.security_group_cidrs_by_environment�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.security_group_cidrs_by_environment as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

�[31mError�[0m: Invalid index

  on terraform/environments/hmpps-oem/locals.tf line 11, in locals:
  11:   baseline_environment_config = local.environment_configs�[1;4m[local.environment]�[0m

with local.environment as "default",
     local.environment_configs as object with 4 attributes.

The given key does not identify an element in this collection value.

tflint_exitcode=1

@jnqn jnqn temporarily deployed to hmpps-oem-test January 2, 2024 14:29 — with GitHub Actions Inactive
@jnqn jnqn had a problem deploying to hmpps-oem-development January 2, 2024 14:29 — with GitHub Actions Failure
Copy link
Contributor

github-actions bot commented Jan 2, 2024

TFSEC Scan Success

Show Output
*****************************

TFSEC will check the following folders:

Checkov Scan Success

Show Output
*****************************

Checkov will check the following folders:

CTFLint Scan Success

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.2.1)
tflint will check the following folders:

@jnqn jnqn merged commit 7360e05 into main Jan 2, 2024
15 of 16 checks passed
@jnqn jnqn deleted the DSOS_2447_update_permission branch January 2, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
environments-repository Used to exclude PRs from this repo in our Slack PR update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants