Skip to content

feat: add RHEL 7 base and Debian 10 cnspec infrastructure#104

Merged
syrull merged 1 commit intomainfrom
fix/add-rhel7-debian10-cnspec-infra
Mar 10, 2026
Merged

feat: add RHEL 7 base and Debian 10 cnspec infrastructure#104
syrull merged 1 commit intomainfrom
fix/add-rhel7-debian10-cnspec-infra

Conversation

@syrull
Copy link
Copy Markdown
Contributor

@syrull syrull commented Mar 10, 2026

The CIS-hardened AMIs for RHEL 7 and Debian 10 were delisted from AWS Marketplace, but the base images are still available. This adds infrastructure so policies can still be tested against these OSes using the base images.

RHEL 7

  • AMI: RHEL-7.9_HVM-*-x86_64* (Red Hat official, owner 309956199498)
  • Modules: rhel7 (base), rhel7_cnspec (with cnspec agent)
  • Verified AMI exists: RHEL-7.9_HVM-20240930-x86_64-0-Hourly2-GP3 (Oct 2024)

Debian 10

  • Module: debian10_cnspec (reuses existing data.aws_ami.debian10 data source)
  • Verified AMI exists: debian-10-amd64-20240703-1797 (Jul 2024)

Add Terraform infrastructure for testing against base (non-CIS) images
where the CIS-hardened AMIs are no longer available on AWS Marketplace.

RHEL 7:
- AMI data source for RHEL 7.9 x86_64 (Red Hat official, owner 309956199498)
- Modules: rhel7 (base), rhel7_cnspec (with cnspec user_data)
- Variables: create_rhel7, create_rhel7_cnspec
- Outputs: SSH commands for both variants

Debian 10:
- Module: debian10_cnspec (reuses existing debian10 AMI data source)
- Variable: create_debian10_cnspec
- Output: SSH command (admin user)
@syrull syrull merged commit 0067b33 into main Mar 10, 2026
3 checks passed
@syrull syrull deleted the fix/add-rhel7-debian10-cnspec-infra branch March 10, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant