https://github.com/cloudsteak/aws-tools
https://github.com/cloudsteak/aws-tools
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudsteak/aws-tools
- Owner: cloudsteak
- License: mit
- Created: 2025-01-30T19:31:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-30T19:57:41.000Z (over 1 year ago)
- Last Synced: 2025-01-30T20:35:17.965Z (over 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Tools
This repository collects useful scripts and solutions for AWS.
## Table of Contents
- [Introduction](#introduction)
- [Installation](#installation)
- [Login to AWS](#login-to-aws)
- [Usage](#usage)
- [Tools](#tools)
- [ECR](#ecr)
- [Contributing](#contributing)
- [License](#license)
## Introduction
Welcome to the AWS Tools repository. This collection includes various scripts and solutions to help you manage and automate your AWS infrastructure.
## Installation
To get started, clone the repository to your local machine:
```bash
git clone https://github.com/cloudsteak/aws-tools.git
```
## Login to AWS
Before using the tools, make sure you have the AWS CLI installed and configured. You can install the AWS CLI by following the instructions in the [AWS CLI User Guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html).
## Usage
Each script and solution is located in its respective directory. Refer to the README files within each directory for detailed usage instructions.
## Tools
### ECR
Tools for ECR (Elastic Container Registry).
**Get ECR Lifecycle Policy**
Get all ECR repositories and their lifecycle policies, then exportthe data to json and txt file.
_Pre-requisites:_ You need to have the AWS CLI installed and configured. Additionally, you need to have the `jq` tool installed.
```bash
cd ecr
./getLifecyclePolicies.sh
```
Results are saved in `ecr/livecycle_policy.json` and `ecr/no_policy.txt`.
```bash
1/5. Checking repository: cs-aws-tools
2/5. Checking repository: cs-django-aws
3/5. Checking repository: cs-fastapi-aws
4/5. Checking repository: cs-go-aws
5/5. Checking repository: cs-python3-aws
Number of repositories with no policy: 1
Number of repositories with policy: 4
Result files: livecycle_policy.json, no_policy.txt
```
## Contributing
We welcome contributions! Please read our [Contributing Guidelines](CONTRIBUTING.md) before submitting a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.