Skip to content

Commit

Permalink
chore: Fix prettier formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Jan 3, 2025
1 parent c97c096 commit 379295c
Show file tree
Hide file tree
Showing 112 changed files with 2,576 additions and 2,118 deletions.
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
test-connection.yaml
deploy/kubernetes/charts/**/*.yaml
deploy/kubernetes/charts/**/*.yaml
deploy/kubernetes/charts/**/*.yml
dist
ATTRIBUTION.md
deploy/terraform/eks/**/*.yaml
src/**/target
Empty file added .prettierrc
Empty file.
3 changes: 2 additions & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Code of Conduct

This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
opensource-codeofconduct@amazon.com with any additional questions or comments.
opensource-codeofconduct@amazon.com with any additional questions or comments.
28 changes: 13 additions & 15 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,23 @@ documentation, we greatly value feedback and contributions from our community.
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
information to effectively respond to your bug report or contribution.


## Reporting Bugs/Feature Requests

We welcome you to use the GitHub issue tracker to report bugs or suggest features.

When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:

* A reproducible test case or series of steps
* The version of our code being used
* Any modifications you've made relevant to the bug
* Anything unusual about your environment or deployment

- A reproducible test case or series of steps
- The version of our code being used
- Any modifications you've made relevant to the bug
- Anything unusual about your environment or deployment

## Contributing via Pull Requests

Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

1. You are working against the latest source on the *main* branch.
1. You are working against the latest source on the _main_ branch.
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.

Expand All @@ -33,28 +32,27 @@ To send us a pull request, please:
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
3. Ensure local tests pass.
4. Ensure code files are formatted using language provided tools such as `terraform fmt`.
4. Commit to your fork using clear commit messages.
5. Send us a pull request, answering any default questions in the pull request interface.
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
5. Commit to your fork using clear commit messages.
6. Send us a pull request, answering any default questions in the pull request interface.
7. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.

GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).


## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

## Code of Conduct

This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
opensource-codeofconduct@amazon.com with any additional questions or comments.


## Security issue notifications
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.

If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.

## Licensing

See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
12 changes: 7 additions & 5 deletions deploy/terraform/ecs/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This Terraform module creates all the necessary infrastructure and deploys the retail sample application on [Amazon Elastic Container Service](https://aws.amazon.com/ecs/).

It provides:

- VPC with public and private subnets
- ECS cluster using Fargate for compute
- All application dependencies such as RDS, DynamoDB table, Elasticache etc.
Expand All @@ -14,6 +15,7 @@ NOTE: This will create resources in your AWS account which will incur costs. You
## Usage

Pre-requisites for this are:

- AWS, Terraform and kubectl installed locally
- AWS CLI configured and authenticated with account to deploy to

Expand Down Expand Up @@ -41,12 +43,12 @@ This section documents the variables and outputs of the Terraform configuration.

### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| `environment_name` | Name of the environment which will be used for all resources created | `string` | `retail-store-ecs` | yes |
| Name | Description | Type | Default | Required |
| ------------------ | -------------------------------------------------------------------- | -------- | ------------------ | :------: |
| `environment_name` | Name of the environment which will be used for all resources created | `string` | `retail-store-ecs` | yes |

### Outputs

| Name | Description |
|------|-------------|
| Name | Description |
| ----------------- | ----------------------------------------- |
| `application_url` | URL where the application can be accessed |
18 changes: 10 additions & 8 deletions deploy/terraform/eks/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This Terraform module creates all the necessary infrastructure and deploys the retail sample application on [Amazon Elastic Kubernetes Service](https://aws.amazon.com/eks/) (EKS). This configuration will deploy all application dependencies using AWS managed services such as Amazon RDS and Amazon DynamoDB.

It provides:

- VPC with public and private subnets
- EKS cluster and managed node groups in multiple availability zones
- All application dependencies such as RDS, DynamoDB table, Elasticache etc.
Expand All @@ -15,6 +16,7 @@ NOTE: This will create resources in your AWS account which will incur costs. You
## Usage

Pre-requisites for this are:

- AWS, Terraform and kubectl installed locally
- AWS CLI configured and authenticated with account to deploy to

Expand Down Expand Up @@ -63,14 +65,14 @@ This section documents the variables and outputs of the Terraform configuration.

### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| `environment_name` | Name of the environment which will be used for all resources created | `string` | `retail-store` | yes |
| `opentelemetry_enabled` | Flag to enable OpenTelemetry, which will install the AWS Distro for OpenTelemetry addon in the EKS cluster, create OpenTelemetry collectors and configure the application components appropriately | `bool` | `false` | no |
| `istio_enabled` | Flag to enable Istio, which will install Istio in the EKS cluster and configure the application components appropriately | `bool` | `false` | no |
| Name | Description | Type | Default | Required |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------------- | :------: |
| `environment_name` | Name of the environment which will be used for all resources created | `string` | `retail-store` | yes |
| `opentelemetry_enabled` | Flag to enable OpenTelemetry, which will install the AWS Distro for OpenTelemetry addon in the EKS cluster, create OpenTelemetry collectors and configure the application components appropriately | `bool` | `false` | no |
| `istio_enabled` | Flag to enable Istio, which will install Istio in the EKS cluster and configure the application components appropriately | `bool` | `false` | no |

### Outputs

| Name | Description |
|------|-------------|
| `configure_kubectl` | AWS CLI command to configure `kubectl` for EKS cluster |
| Name | Description |
| ------------------- | ------------------------------------------------------ |
| `configure_kubectl` | AWS CLI command to configure `kubectl` for EKS cluster |
18 changes: 10 additions & 8 deletions deploy/terraform/eks/minimal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This Terraform module creates all the necessary infrastructure for the retail sample application on [Amazon Elastic Kubernetes Service](https://aws.amazon.com/eks/) (EKS). This configuration will only provision the EKS cluster and other foundational infrastructure such as the VPC. It will not deploy services to fulfill application dependencies such as Amazon RDS or Amazon DynamoDB (see [default configuration](../default/)).

It provides:

- VPC with public and private subnets
- EKS cluster and managed node groups in multiple availability zones

Expand All @@ -11,6 +12,7 @@ NOTE: This will create resources in your AWS account which will incur costs. You
## Usage

Pre-requisites for this are:

- AWS, Terraform and kubectl installed locally
- AWS CLI configured and authenticated with account to deploy to

Expand Down Expand Up @@ -48,14 +50,14 @@ This section documents the variables and outputs of the Terraform configuration.

### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| `environment_name` | Name of the environment which will be used for all resources created | `string` | `retail-store` | yes |
| `opentelemetry_enabled` | Flag to enable OpenTelemetry, which will install the AWS Distro for OpenTelemetry addon in the EKS cluster and create OpenTelemetry collectors. | `bool` | `false` | no |
| `istio_enabled` | Flag to enable Istio, which will install Istio in the EKS cluster | `bool` | `false` | no |
| Name | Description | Type | Default | Required |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------------- | :------: |
| `environment_name` | Name of the environment which will be used for all resources created | `string` | `retail-store` | yes |
| `opentelemetry_enabled` | Flag to enable OpenTelemetry, which will install the AWS Distro for OpenTelemetry addon in the EKS cluster and create OpenTelemetry collectors. | `bool` | `false` | no |
| `istio_enabled` | Flag to enable Istio, which will install Istio in the EKS cluster | `bool` | `false` | no |

### Outputs

| Name | Description |
|------|-------------|
| `configure_kubectl` | AWS CLI command to configure `kubectl` for EKS cluster |
| Name | Description |
| ------------------- | ------------------------------------------------------ |
| `configure_kubectl` | AWS CLI command to configure `kubectl` for EKS cluster |
2 changes: 1 addition & 1 deletion deploy/terraform/lib/images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ result = {
"orders" = "public.ecr.aws/aws-containers/retail-store-sample-orders:0.2.0"
"ui" = "public.ecr.aws/aws-containers/retail-store-sample-ui:0.2.0"
}
```
```
2 changes: 1 addition & 1 deletion oss/ort/curations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
- id: "Maven:org.hdrhistogram:HdrHistogram"
curations:
comment: "Dual-licensed, using BSD-2-Clause"
concluded_license: "BSD-2-Clause"
concluded_license: "BSD-2-Clause"
2 changes: 1 addition & 1 deletion oss/ort/go-mod.ort.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
excludes: {}
excludes: {}
18 changes: 9 additions & 9 deletions oss/ort/maven.ort.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
excludes:
scopes:
- pattern: "provided"
reason: "PROVIDED_DEPENDENCY_OF"
comment: "Packages provided at runtime by the JDK or container only."
- pattern: "test"
reason: "TEST_DEPENDENCY_OF"
comment: "Packages for testing only."
- pattern: "devDependencies"
reason: "DEV_DEPENDENCY_OF"
comment: "Packages for development only."
- pattern: "provided"
reason: "PROVIDED_DEPENDENCY_OF"
comment: "Packages provided at runtime by the JDK or container only."
- pattern: "test"
reason: "TEST_DEPENDENCY_OF"
comment: "Packages for testing only."
- pattern: "devDependencies"
reason: "DEV_DEPENDENCY_OF"
comment: "Packages for development only."
6 changes: 3 additions & 3 deletions oss/ort/npm.ort.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
excludes:
scopes:
- pattern: "devDependencies"
reason: "DEV_DEPENDENCY_OF"
comment: "Packages for development only."
- pattern: "devDependencies"
reason: "DEV_DEPENDENCY_OF"
comment: "Packages for development only."
10 changes: 3 additions & 7 deletions release-notes-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"labels": ["test"]
},
{
"title": "## 📦 Dependencies",
"labels": ["deps"]
"title": "## 📦 Dependencies",
"labels": ["deps"]
},
{
"title": "## 📖 Documentation",
Expand All @@ -25,11 +25,7 @@
"labels": ["chore"]
}
],
"ignore_labels": [
"release",
"deps",
"dependabot"
],
"ignore_labels": ["release", "deps", "dependabot"],
"transformers": [
{
"pattern": "[\\-\\*] ((feat|fix|test|chore|docs):)( )?(.+?)\n(.+?[\\-\\*] )(.+)",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/buildpack.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
nginx:
version: "mainline"
version: "mainline"
2 changes: 1 addition & 1 deletion src/assets/public/health.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
OK
OK
19 changes: 10 additions & 9 deletions src/cart/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# AWS Containers Retail Sample - Cart Service

| Language | Persistence |
|---|---|
| Java | Amazon DynamoDB |
| Language | Persistence |
| -------- | --------------- |
| Java | Amazon DynamoDB |

This service provides an API for storing customer shopping carts. Data is stored in Amazon DynamoDB.

## Configuration

The following environment variables are available for configuring the service:

| Name | Description | Default |
|---|---|---|
| `PORT` | The port which the server will listen on | `8080` |
| `CARTS_DYNAMODB_TABLENAME` | The name of the Amazon DynamoDB table used for persistence | `Items` |
| `CARTS_DYNAMODB_ENDPOINT` | The Amazon DynamoDB endpoint to use | ` ` |
| Name | Description | Default |
| ---------------------------- | ----------------------------------------------------------------- | ------- |
| `PORT` | The port which the server will listen on | `8080` |
| `CARTS_DYNAMODB_TABLENAME` | The name of the Amazon DynamoDB table used for persistence | `Items` |
| `CARTS_DYNAMODB_ENDPOINT` | The Amazon DynamoDB endpoint to use | ` ` |
| `CARTS_DYNAMODB_CREATETABLE` | Enable to automatically create the Amazon DynamoDB table required | `false` |

## Running
Expand All @@ -24,6 +24,7 @@ There are two main options for running the service:
### Local

Pre-requisites:

- Java 17 installed

Run the Spring Boot application like so:
Expand All @@ -48,4 +49,4 @@ To clean up:

```
docker compose down
```
```
Loading

0 comments on commit 379295c

Please sign in to comment.