Skip to content

Releases: cloudposse/terraform-aws-elastic-beanstalk-environment

v0.53.0

07 Aug 21:59

Choose a tag to compare

feat: expose ec2 service role as output @cilasbeltrame (#279) ## what
  • Expose service role, so that it can be used as input for other modules.
  • Fix terratest tests for environment creation.

why

  • It can be leveraged in conjunction of the Elastic Beanstalk Application. Since the service role is already created by the EB environment module.
  • Fixing Terratest allows reliable automated validation of this module.

references

  • For instance, it can be referred in in the module Elastic Beanstalk Application appversion_lifecycle_service_role_arn as part of lifecycle role cleanup
  • Terratest error while testing:
    Error: creating Elastic Beanstalk Environment (eg-test-eb-env-shared-alb-qjkk0y): operation error Elastic Beanstalk: CreateEnvironment, https response error StatusCode: 400, RequestID: f6b66297-8b0d-4902-a3d8-934ffc0c4a32, api error InvalidParameterValue: No Solution Stack named '64bit Amazon Linux 2023 v4.0.1 running Python 3.11'

🤖 Automatic Updates

Fix go version in tests @osterman (#276) ## what - Update go `1.24`

why

  • Error loading shared library libresolv.so.2 in Go 1.20

References

Replace Makefile with atmos.yaml @osterman (#275) ## what - Remove `Makefile` - Add `atmos.yaml`

why

  • Replace build-harness with atmos for readme genration

References

  • DEV-3229 Migrate from build-harness to atmos
Migrate new test account @osterman (#270) ## what - Update `.github/settings.yml` - Update `.github/chatops.yml` files

why

  • Re-apply .github/settings.yml from org level to get terratest environment
  • Migrate to new test account

References

  • DEV-388 Automate clean up of test account in new organization
  • DEV-387 Update terratest to work on a shared workflow instead of a dispatch action
  • DEV-386 Update terratest to use new testing account with GitHub OIDC
Update .github/settings.yml @osterman (#269) ## what - Update `.github/settings.yml` - Drop `.github/auto-release.yml` files

why

  • Re-apply .github/settings.yml from org level
  • Use organization level auto-release settings

references

  • DEV-1242 Add protected tags with Repository Rulesets on GitHub
Update .github/settings.yml @osterman (#268) ## what - Update `.github/settings.yml` - Drop `.github/auto-release.yml` files

why

  • Re-apply .github/settings.yml from org level
  • Use organization level auto-release settings

references

  • DEV-1242 Add protected tags with Repository Rulesets on GitHub

v0.52.0

24 Jun 21:00
cce5a7e

Choose a tag to compare

Fix: add depends_on instance profile for EB env @QuentinBtd (#267)

what

Add depends_on in elastic_beanstalk_environment

why

If instance profile is created after the environment, the creation of this last will failed.

references

I just encountered the problem;

The instance profile my-env-eb-ec2 associated with the environment does not exist.

🤖 Automatic Updates

Update release workflow to allow pull-requests: write @osterman (#266)

what

  • Update workflow (.github/workflows/release.yaml) to have permission to comment on PR

why

  • So we can support commenting on PRs with a link to the release
Update GitHub Workflows to use shared workflows from '.github' repo @osterman (#265)

what

  • Update workflows (.github/workflows) to use shared workflows from .github repo

why

  • Reduce nested levels of reusable workflows

v0.51.3

16 May 02:43

Choose a tag to compare

🚀 Enhancements

Bump elb_logs module version to fix #259 @benjamin-hg (#264)

Include fix for cloudposse/terraform-aws-lb-s3-bucket#81

what

Bumped elb_logs module version from 0.19.0. to 0.20.0

why

To include a bugfix in order to fix #259.

The actual fix is in this commit: cloudposse/terraform-aws-lb-s3-bucket@a642b87#diff-dc46acf24afd63ef8c556b77c126ccc6e578bc87e3aa09a931f33d9bf2532fbb

references

🤖 Automatic Updates

Update GitHub Workflows to Fix ReviewDog TFLint Action @osterman (#263)

what

  • Update workflows (.github/workflows) to add issue: write permission needed by ReviewDog tflint action

why

  • The ReviewDog action will comment with line-level suggestions based on linting failures
Update GitHub workflows @osterman (#261)

what

  • Update workflows (.github/workflows/settings.yaml)

why

  • Support new readme generation workflow.
  • Generate banners
Use GitHub Action Workflows from `cloudposse/.github` Repo @osterman (#258)

what

  • Install latest GitHub Action Workflows

why

  • Use shared workflows from cldouposse/.github repository
  • Simplify management of workflows from centralized hub of configuration
Add GitHub Settings @osterman (#256)

what

  • Install a repository config (.github/settings.yaml)

why

  • Programmatically manage GitHub repo settings
Add GitHub Settings @osterman (#255)

what

  • Install a .github/settings.yaml

why

  • Programmatically manage GitHub repo settings
Update README.md and docs @cloudpossebot (#253)

what

This is an auto-generated PR that updates the README.md and docs

why

To have most recent changes of README.md and doc from origin templates

Update Scaffolding @osterman (#254)

what

  • Reran make readme to rebuild README.md from README.yaml
  • Migrate to square badges
  • Add scaffolding for repo settings and Mergify

why

  • Upstream template changed in the .github repo
  • Work better with repository rulesets
  • Modernize look & feel
Update README.md and docs @cloudpossebot (#249)

what

This is an auto-generated PR that updates the README.md and docs

why

To have most recent changes of README.md and doc from origin templates

v0.51.2

07 Sep 09:05
79c464b

Choose a tag to compare

🚀 Enhancements

Bugfix issue with ALB bucket output name and name in general @gugaiz (#247)

what

This fixes the issue with the output of the ALB bucket name, it also incorporates the option to manually set the bucket name to make it backward compatible with the previous deployment (what already has the bucket name assigned)

why

Because it is a bug that is on production code as commented on here

v0.51.1

17 Jul 21:58
9697073

Choose a tag to compare

🚀 Enhancements

Fix/security groups update @samcrudge (#244)

what

Suggested changed by @goruha.

Default to empty string if aws_security_group.id is null. Empty string will then get filtered out by compact().

why

Null value caused sort() function to crash, making it impossible to set create_security_group to false

Implementing changes suggested in #229 by @goruha.

references

Fixed sort function crashing when create_security_group=false #229
Option create_security_group can't be false currently #216

v0.51.0

30 Jun 20:23
92c3ba4

Choose a tag to compare

what

  • Introduces using cloudposse s3-bucket module for creating ALB logging bucket
  • Introducing new variable which defines if s3 logs for ALB is enabled or disabled (default is still true)
  • Adding random suffix to the name of logging bucket (since names of S3 must be globally unique - very often name provided in module is in collision with some already existed)
  • If created, S3 bucket for storing ALB access logs is encrypted by default
  • Updated examples (modules vpc, subnet and alb were in old versions)

why

  • This module not usable anymore due to deprecation message by terraform about s3 bucket (see #227 )
  • Users of this module don't always need access logs from Load Balancer n S3 bucket
  • Existing examples were unusable due to old versions of modules in them.

v0.50.0

28 Mar 10:50
c8c50bd

Choose a tag to compare

Groundwork new workflows @max-lobur (#232)

Fix lint/format before workflows rollout

v0.49.0

14 Feb 19:48
d4009cb

Choose a tag to compare

[#98] Add a flag to redirect HTTP traffic to HTTPS @sestrella (#218)

what

  • Add a flag to redirect HTTP traffic to HTTPS
  • The hostname included in the redirection can be customized

why

  • It is a common best practice to redirect HTTP traffic to HTTPS
  • This workaround is necessary since Elastic Beanstalk HTTP listener rule can't be changed to a redirect action via the general options

references

v0.48.0

31 Jan 02:07
d3e0bcb

Choose a tag to compare

Fixed ssm activation error #205 @dcotelo (#222)

what

  • Added depends_on = [aws_elastic_beanstalk_environment.default] to aws_ssm_activation.ec2

why

  • As stated in this comment on the issue #205 it does actually solve the problem.

references

v0.47.2

24 Oct 20:12
87808f7

Choose a tag to compare

🚀 Enhancements

Fixed potential self-escalation from iam:PassRole @comrumino (#215)

What I did

  • Moved iam:PassRole from AllowOperations to a new statement named AllowPassRole and limited the resources/roles that can be passed to aws_iam_role.ec2 and aws_iam_role.service

Why I did it

  • The current default policy document is overly permissive and was reported by our security tooling as a having the potential for privilege escalation. Without restricting which roles can be passed, a role with elevated privileges could be passed.
  • Splitting actions into smaller statements make overriding resources or specific statements less unwieldy.