From 2065021e66f34134f40388d5ab2404180b60da1e Mon Sep 17 00:00:00 2001
From: sturman <4456572+sturman@users.noreply.github.com>
Date: Tue, 4 Oct 2022 22:48:26 +0300
Subject: [PATCH 1/5] Add ARN of AWS IAM Role associated with the instance to
outputs
---
outputs.tf | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/outputs.tf b/outputs.tf
index f5a6b17..0514149 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -23,6 +23,11 @@ output "role" {
description = "Name of AWS IAM Role associated with the instance"
}
+output "role_arn" {
+ value = join("", aws_iam_role.default.*.arn)
+ description = "ARN of AWS IAM Role associated with the instance"
+}
+
output "public_ip" {
value = concat(aws_eip.default.*.public_ip, aws_instance.default.*.public_ip, [""])[0]
description = "Public IP of the instance (or EIP)"
From 61a194f2ee6779d579f8edf7ece8cea639ecaf8a Mon Sep 17 00:00:00 2001
From: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
Date: Tue, 4 Oct 2022 19:53:16 +0000
Subject: [PATCH 2/5] Auto Format
---
.github/auto-release.yml | 1 -
.github/renovate.json | 2 +-
.github/workflows/validate-codeowners.yml | 1 +
README.md | 4 +++-
docs/terraform.md | 1 +
5 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/.github/auto-release.yml b/.github/auto-release.yml
index b45efb7..17cd39c 100644
--- a/.github/auto-release.yml
+++ b/.github/auto-release.yml
@@ -17,7 +17,6 @@ version-resolver:
- 'bugfix'
- 'bug'
- 'hotfix'
- - 'no-release'
default: 'minor'
categories:
diff --git a/.github/renovate.json b/.github/renovate.json
index ae4f0aa..a780298 100644
--- a/.github/renovate.json
+++ b/.github/renovate.json
@@ -4,9 +4,9 @@
":preserveSemverRanges"
],
"labels": ["auto-update"],
+ "dependencyDashboardAutoclose": true,
"enabledManagers": ["terraform"],
"terraform": {
"ignorePaths": ["**/context.tf", "examples/**"]
}
}
-
diff --git a/.github/workflows/validate-codeowners.yml b/.github/workflows/validate-codeowners.yml
index 70f829e..4b4a226 100644
--- a/.github/workflows/validate-codeowners.yml
+++ b/.github/workflows/validate-codeowners.yml
@@ -10,6 +10,7 @@ jobs:
steps:
- name: "Checkout source code at current commit"
uses: actions/checkout@v2
+ # Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved
- uses: mszostok/codeowners-validator@v0.7.1
if: github.event.pull_request.head.repo.full_name == github.repository
name: "Full check of CODEOWNERS"
diff --git a/README.md b/README.md
index 81a7175..d6e8ffe 100644
--- a/README.md
+++ b/README.md
@@ -204,6 +204,7 @@ Available targets:
| [public\_dns](#output\_public\_dns) | Public DNS of instance (or DNS of EIP) |
| [public\_ip](#output\_public\_ip) | Public IP of the instance (or EIP) |
| [role](#output\_role) | Name of AWS IAM Role associated with the instance |
+| [role\_arn](#output\_role\_arn) | ARN of AWS IAM Role associated with the instance |
| [security\_group\_arn](#output\_security\_group\_arn) | Bastion host Security Group ARN |
| [security\_group\_id](#output\_security\_group\_id) | Bastion host Security Group ID |
| [security\_group\_ids](#output\_security\_group\_ids) | IDs on the AWS Security Groups associated with the instance |
@@ -377,7 +378,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
[![README Footer][readme_footer_img]][readme_footer_link]
[![Beacon][beacon]][website]
-
+
[logo]: https://cloudposse.com/logo-300x69.svg
[docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=docs
[website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=website
@@ -408,3 +409,4 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
[share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-ec2-bastion-server
[share_email]: mailto:?subject=terraform-aws-ec2-bastion-server&body=https://github.com/cloudposse/terraform-aws-ec2-bastion-server
[beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-ec2-bastion-server?pixel&cs=github&cm=readme&an=terraform-aws-ec2-bastion-server
+
diff --git a/docs/terraform.md b/docs/terraform.md
index 74bbc31..f1782ee 100644
--- a/docs/terraform.md
+++ b/docs/terraform.md
@@ -105,6 +105,7 @@
| [public\_dns](#output\_public\_dns) | Public DNS of instance (or DNS of EIP) |
| [public\_ip](#output\_public\_ip) | Public IP of the instance (or EIP) |
| [role](#output\_role) | Name of AWS IAM Role associated with the instance |
+| [role\_arn](#output\_role\_arn) | ARN of AWS IAM Role associated with the instance |
| [security\_group\_arn](#output\_security\_group\_arn) | Bastion host Security Group ARN |
| [security\_group\_id](#output\_security\_group\_id) | Bastion host Security Group ID |
| [security\_group\_ids](#output\_security\_group\_ids) | IDs on the AWS Security Groups associated with the instance |
From d9eed4625ed8b0689c9a4becdd4fafb211262a33 Mon Sep 17 00:00:00 2001
From: sturman <4456572+sturman@users.noreply.github.com>
Date: Fri, 8 Mar 2024 13:58:39 +0200
Subject: [PATCH 3/5] Delete workflow
---
.github/workflows/validate-codeowners.yml | 0
1 file changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 .github/workflows/validate-codeowners.yml
diff --git a/.github/workflows/validate-codeowners.yml b/.github/workflows/validate-codeowners.yml
deleted file mode 100644
index e69de29..0000000
From 53abae0d0dc998594546ea6e2284559a8c6bc7c2 Mon Sep 17 00:00:00 2001
From: sturman <4456572+sturman@users.noreply.github.com>
Date: Fri, 8 Mar 2024 15:31:49 +0200
Subject: [PATCH 4/5] Update README.md
---
README.md | 238 ++++++++++++------------------------------------------
1 file changed, 50 insertions(+), 188 deletions(-)
diff --git a/README.md b/README.md
index d4cc54e..d9ddf79 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,10 @@
+
-# terraform-aws-ec2-bastion-server [](https://github.com/cloudposse/terraform-aws-ec2-bastion-server/releases/latest) [](https://slack.cloudposse.com)
+# terraform-aws-ec2-bastion-server
+
-[![README Header][readme_header_img]][readme_header_link]
-
-[![Cloud Posse][logo]](https://cpco.io/homepage)
-
-
-## Share the Love
-
-Like this project? Please give it a β
on [our GitHub](https://github.com/cloudposse/terraform-aws-ec2-bastion-server)! (it helps us **a lot**)
-
-Are you using this project or any of our other projects? Consider [leaving a testimonial][testimonial]. =)
-
-
-
## Related Projects
Check out these related projects.
@@ -230,86 +188,57 @@ Check out these related projects.
- [terraform-aws-ec2-instance](https://github.com/cloudposse/terraform-aws-ec2-instance) - Terraform module for providing a general EC2 instance provisioned by Ansible
- [terraform-aws-ec2-ami-backup](https://github.com/cloudposse/terraform-aws-ec2-ami-backup) - Terraform module for automatic & scheduled AMI creation
-## Help
-
-**Got a question?** We got answers.
-
-File a GitHub [issue](https://github.com/cloudposse/terraform-aws-ec2-bastion-server/issues), send us an [email][email] or join our [Slack Community][slack].
-
-[![README Commercial Support][readme_commercial_support_img]][readme_commercial_support_link]
-
-## DevOps Accelerator for Startups
-
-
-We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
-
-[][commercial_support]
+## β¨ Contributing
-Work directly with our team of DevOps experts via email, slack, and video conferencing.
+This project is under active development, and we encourage contributions from our community.
+Many thanks to our outstanding contributors:
-We deliver 10x the value for a fraction of the cost of a full-time engineer. Our track record is not even funny. If you want things done right and you need it done FAST, then we're your best bet.
+
+
+
-- **Reference Architecture.** You'll get everything you need from the ground up built using 100% infrastructure as code.
-- **Release Engineering.** You'll have end-to-end CI/CD with unlimited staging environments.
-- **Site Reliability Engineering.** You'll have total visibility into your apps and microservices.
-- **Security Baseline.** You'll have built-in governance with accountability and audit logs for all changes.
-- **GitOps.** You'll be able to operate your infrastructure via Pull Requests.
-- **Training.** You'll receive hands-on training so your team can operate what we build.
-- **Questions.** You'll have a direct line of communication between our teams via a Shared Slack channel.
-- **Troubleshooting.** You'll get help to triage when things aren't working.
-- **Code Reviews.** You'll receive constructive feedback on Pull Requests.
-- **Bug Fixes.** We'll rapidly work with you to fix any bugs in our projects.
-
-## Slack Community
-
-Join our [Open Source Community][slack] on Slack. It's **FREE** for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally *sweet* infrastructure.
-
-## Discourse Forums
-
-Participate in our [Discourse Forums][discourse]. Here you'll find answers to commonly asked questions. Most questions will be related to the enormous number of projects we support on our GitHub. Come here to collaborate on answers, find solutions, and get ideas about the products and services we value. It only takes a minute to get started! Just sign in with SSO using your GitHub account.
-
-## Newsletter
-
-Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
-
-## Office Hours
-
-[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
-
-[][office_hours]
-
-## Contributing
-
-### Bug Reports & Feature Requests
+### π Bug Reports & Feature Requests
Please use the [issue tracker](https://github.com/cloudposse/terraform-aws-ec2-bastion-server/issues) to report any bugs or file feature requests.
-### Developing
+### π» Developing
-If you are interested in being a contributor and want to get involved in developing this project or [help out](https://cpco.io/help-out) with our other projects, we would love to hear from you! Shoot us an [email][email].
+If you are interested in being a contributor and want to get involved in developing this project or help out with Cloud Posse's other projects, we would love to hear from you!
+Hit us up in [Slack](https://cpco.io/slack?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=slack), in the `#cloudposse` channel.
In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
-
- 1. **Fork** the repo on GitHub
- 2. **Clone** the project to your own machine
- 3. **Commit** changes to your own branch
- 4. **Push** your work back up to your fork
- 5. Submit a **Pull Request** so that we can review your changes
+ 1. Review our [Code of Conduct](https://github.com/cloudposse/terraform-aws-ec2-bastion-server/?tab=coc-ov-file#code-of-conduct) and [Contributor Guidelines](https://github.com/cloudposse/.github/blob/main/CONTRIBUTING.md).
+ 2. **Fork** the repo on GitHub
+ 3. **Clone** the project to your own machine
+ 4. **Commit** changes to your own branch
+ 5. **Push** your work back up to your fork
+ 6. Submit a **Pull Request** so that we can review your changes
**NOTE:** Be sure to merge the latest changes from "upstream" before making a pull request!
+### π Slack Community
-## Copyright
+Join our [Open Source Community](https://cpco.io/slack?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=slack) on Slack. It's **FREE** for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally *sweet* infrastructure.
-Copyright Β© 2017-2023 [Cloud Posse, LLC](https://cpco.io/copyright)
+### π° Newsletter
+Sign up for [our newsletter](https://cpco.io/newsletter?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=newsletter) and join 3,000+ DevOps engineers, CTOs, and founders who get insider access to the latest DevOps trends, so you can always stay in the know.
+Dropped straight into your Inbox every week β and usually a 5-minute read.
+### π Office Hours
+[Join us every Wednesday via Zoom](https://cloudposse.com/office-hours?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=office_hours) for your weekly dose of insider DevOps trends, AWS news and Terraform insights, all sourced from our SweetOps community, plus a _live Q&A_ that you canβt find anywhere else.
+It's **FREE** for everyone!
## License
-[](https://opensource.org/licenses/Apache-2.0)
+
-See [LICENSE](LICENSE) for full details.
+
+Preamble to the Apache License, Version 2.0
+
+
+
+Complete license is available in the [`LICENSE`](LICENSE) file.
```text
Licensed to the Apache Software Foundation (ASF) under one
@@ -329,84 +258,17 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
```
-
-
-
-
-
-
-
-
+
## Trademarks
All other trademarks referenced herein are the property of their respective owners.
-## About
-
-This project is maintained and funded by [Cloud Posse, LLC][website]. Like it? Please let us know by [leaving a testimonial][testimonial]!
-
-[![Cloud Posse][logo]][website]
-
-We're a [DevOps Professional Services][hire] company based in Los Angeles, CA. We β€οΈ [Open Source Software][we_love_open_source].
-
-We offer [paid support][commercial_support] on all of our projects.
-
-Check out [our other projects][github], [follow us on twitter][twitter], [apply for a job][jobs], or [hire us][hire] to help with your cloud strategy and implementation.
-
+---
+Copyright Β© 2017-2024 [Cloud Posse, LLC](https://cpco.io/copyright)
-### Contributors
-
-| [![Erik Osterman][osterman_avatar]][osterman_homepage]
[Erik Osterman][osterman_homepage] | [![Andriy Knysh][aknysh_avatar]][aknysh_homepage]
[Andriy Knysh][aknysh_homepage] | [![Igor Rodionov][goruha_avatar]][goruha_homepage]
[Igor Rodionov][goruha_homepage] | [![Bobby Larson][karma0_avatar]][karma0_homepage]
[Bobby Larson][karma0_homepage] | [![Vladimir Syromyatnikov][SweetOps_avatar]][SweetOps_homepage]
[Vladimir Syromyatnikov][SweetOps_homepage] | [![Yonatan Koren][korenyoni_avatar]][korenyoni_homepage]
[Yonatan Koren][korenyoni_homepage] |
-|---|---|---|---|---|---|
-
+
- [osterman_homepage]: https://github.com/osterman
- [osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png
- [aknysh_homepage]: https://github.com/aknysh
- [aknysh_avatar]: https://img.cloudposse.com/150x150/https://github.com/aknysh.png
- [goruha_homepage]: https://github.com/goruha
- [goruha_avatar]: https://img.cloudposse.com/150x150/https://github.com/goruha.png
- [karma0_homepage]: https://github.com/karma0
- [karma0_avatar]: https://img.cloudposse.com/150x150/https://github.com/karma0.png
- [SweetOps_homepage]: https://github.com/SweetOps
- [SweetOps_avatar]: https://img.cloudposse.com/150x150/https://github.com/SweetOps.png
- [korenyoni_homepage]: https://github.com/korenyoni
- [korenyoni_avatar]: https://img.cloudposse.com/150x150/https://github.com/korenyoni.png
-
-[![README Footer][readme_footer_img]][readme_footer_link]
-[![Beacon][beacon]][website]
-
- [logo]: https://cloudposse.com/logo-300x69.svg
- [docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=docs
- [website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=website
- [github]: https://cpco.io/github?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=github
- [jobs]: https://cpco.io/jobs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=jobs
- [hire]: https://cpco.io/hire?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=hire
- [slack]: https://cpco.io/slack?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=slack
- [linkedin]: https://cpco.io/linkedin?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=linkedin
- [twitter]: https://cpco.io/twitter?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=twitter
- [testimonial]: https://cpco.io/leave-testimonial?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=testimonial
- [office_hours]: https://cloudposse.com/office-hours?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=office_hours
- [newsletter]: https://cpco.io/newsletter?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=newsletter
- [discourse]: https://ask.sweetops.com/?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=discourse
- [email]: https://cpco.io/email?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=email
- [commercial_support]: https://cpco.io/commercial-support?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=commercial_support
- [we_love_open_source]: https://cpco.io/we-love-open-source?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=we_love_open_source
- [terraform_modules]: https://cpco.io/terraform-modules?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=terraform_modules
- [readme_header_img]: https://cloudposse.com/readme/header/img
- [readme_header_link]: https://cloudposse.com/readme/header/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=readme_header_link
- [readme_footer_img]: https://cloudposse.com/readme/footer/img
- [readme_footer_link]: https://cloudposse.com/readme/footer/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=readme_footer_link
- [readme_commercial_support_img]: https://cloudposse.com/readme/commercial-support/img
- [readme_commercial_support_link]: https://cloudposse.com/readme/commercial-support/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ec2-bastion-server&utm_content=readme_commercial_support_link
- [share_twitter]: https://twitter.com/intent/tweet/?text=terraform-aws-ec2-bastion-server&url=https://github.com/cloudposse/terraform-aws-ec2-bastion-server
- [share_linkedin]: https://www.linkedin.com/shareArticle?mini=true&title=terraform-aws-ec2-bastion-server&url=https://github.com/cloudposse/terraform-aws-ec2-bastion-server
- [share_reddit]: https://reddit.com/submit/?url=https://github.com/cloudposse/terraform-aws-ec2-bastion-server
- [share_facebook]: https://facebook.com/sharer/sharer.php?u=https://github.com/cloudposse/terraform-aws-ec2-bastion-server
- [share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-ec2-bastion-server
- [share_email]: mailto:?subject=terraform-aws-ec2-bastion-server&body=https://github.com/cloudposse/terraform-aws-ec2-bastion-server
- [beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-ec2-bastion-server?pixel&cs=github&cm=readme&an=terraform-aws-ec2-bastion-server
-
+
From c26413f387508738b07447982f95d3a3a4a128e0 Mon Sep 17 00:00:00 2001
From: sturman <4456572+sturman@users.noreply.github.com>
Date: Sat, 9 Mar 2024 11:23:07 +0200
Subject: [PATCH 5/5] Update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index b29f29a..36f22dd 100644
--- a/README.md
+++ b/README.md
@@ -168,6 +168,7 @@ Available targets:
| [public\_dns](#output\_public\_dns) | Public DNS of instance (or DNS of EIP) |
| [public\_ip](#output\_public\_ip) | Public IP of the instance (or EIP) |
| [role](#output\_role) | Name of AWS IAM Role associated with the instance |
+| [role\_arn](#output\_role\_arn) | ARN of AWS IAM Role associated with the instance |
| [security\_group\_arn](#output\_security\_group\_arn) | Bastion host Security Group ARN |
| [security\_group\_id](#output\_security\_group\_id) | Bastion host Security Group ID |
| [security\_group\_ids](#output\_security\_group\_ids) | IDs on the AWS Security Groups associated with the instance |