Skip to content

Commit

Permalink
Update copyright statements and license info
Browse files Browse the repository at this point in the history
**Why?**

The year is no longer required in our Copyright statements.
Additionally, some files were missing a Copyright / license statement, while
it is a best practice to add one.

**What?**

* Add/upodate copyright statement,
* Add Apache-2.0 license, except for Lambda Functions, these should have MIT-0
  instead. Since most of our code is in the initial-commit Lambda Function,
  these files are under the MIT-0 license. With the exception of CloudFormation
  templates.
  • Loading branch information
sbkok committed Apr 8, 2024
1 parent bbecd08 commit ca32953
Show file tree
Hide file tree
Showing 284 changed files with 560 additions and 199 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

# Makefile versions
Expand Down
2 changes: 1 addition & 1 deletion Makefile.tox
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

# Files to work with
Expand Down
2 changes: 1 addition & 1 deletion NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

AWS Deployment Framework

Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Copyright Amazon.com Inc. or its affiliates.
3 changes: 3 additions & 0 deletions resources/OrganizationAccountAccessRole.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: "2010-09-09"
Description: >-
Organizational Account Access Role for Cross-Account automation
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-cdk-app/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-cdk-app/handler.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

def main(event, context):
print("I'm running!")
3 changes: 3 additions & 0 deletions samples/sample-cdk-app/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com Inc. or its affiliates.
// SPDX-License-Identifier: Apache-2.0

import events = require('@aws-cdk/aws-events');
import targets = require('@aws-cdk/aws-events-targets');
import lambda = require('@aws-cdk/aws-lambda');
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-codebuild-vpc/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-codebuild-vpc/params/global.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Tags:
Repository: sample-codebuild-vpc-repo
App: Sample CodeBuild VPC application
4 changes: 2 additions & 2 deletions samples/sample-codebuild-vpc/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# // SPDX-License-Identifier: Apache-2.0
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: '2010-09-09'
Description: ADF CloudFormation Sample Template
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-codebuild-vpc/testspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ec2-java-app-codedeploy/appspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.0
os: linux

Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ec2-java-app-codedeploy/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ec2-java-app-codedeploy/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright Amazon.com Inc. or its affiliates. -->
<!-- SPDX-License-Identifier: Apache-2.0 -->

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ec2-java-app-codedeploy/scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

cd /home/ec2-user/server
sudo /usr/bin/java -jar -Dserver.port=80 \
*.jar > /dev/null 2> /dev/null < /dev/null &
3 changes: 3 additions & 0 deletions samples/sample-ec2-java-app-codedeploy/scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

sudo killall java
exit 0
3 changes: 3 additions & 0 deletions samples/sample-ec2-java-app-codedeploy/scripts/validate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

echo "Waiting for 15 seconds before checking health.."
sleep 15

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com Inc. or its affiliates.
// SPDX-License-Identifier: Apache-2.0

package hello;

import org.springframework.boot.SpringApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

server:
port: 8080

Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ec2-with-codedeploy/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ec2-with-codedeploy/params/global.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Parameters:
Environment: testing
ApplicationName: sample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

set -xe

## Code Deploy Agent Bootstrap Script ##
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ec2-with-codedeploy/scripts/install-deps.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

# install apache httpd
sudo yum install httpd -y

Expand Down
4 changes: 2 additions & 2 deletions samples/sample-ec2-with-codedeploy/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# // SPDX-License-Identifier: Apache-2.0
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: '2010-09-09'
Description: ADF CloudFormation Sample Template (EC2 Application with CodeDeploy Components)
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ecr-repository/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ecr-repository/params/global.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Parameters:
TestingAccountId: '11111111111'
ProductionAccountId: '999999999999'
Expand Down
4 changes: 2 additions & 2 deletions samples/sample-ecr-repository/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# // SPDX-License-Identifier: Apache-2.0
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: "2010-09-09"
Description: ADF CloudFormation Sample Template (Shared ECR Repository)
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ecs-cluster/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-ecs-cluster/params/banking-production.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Parameters:
Environment: production
3 changes: 3 additions & 0 deletions samples/sample-ecs-cluster/params/global.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Parameters:
Environment: testing
4 changes: 2 additions & 2 deletions samples/sample-ecs-cluster/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# // SPDX-License-Identifier: Apache-2.0
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

# This Template builds on top of the great work of Nathan Pec
# => https://github.com/nathanpeck/aws-cloudformation-fargate
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-etl-pipeline/scripts/some_etl_script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

set -e

echo "Doing some ETL tasks... This could also be done with a custom CodeBuild Image..."
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-expunge-vpc/build-lambda.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

set -e

cd src/lambda_vpc
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-expunge-vpc/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-expunge-vpc/src/lambda_vpc/lambda_function.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: MIT-0

from crhelper import CfnResource
import logging
import boto3
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-expunge-vpc/template.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: Deploys the Custom Resource for deleting the default VPC in all regions
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

FROM node:current-alpine
WORKDIR /app
COPY . .
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/build/docker.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

set -e

$(aws ecr get-login --region $AWS_REGION --no-include-email)
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/build/generate_parameters.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

set -e

aws s3 cp s3://$S3_BUCKET_NAME/adf-build/ adf-build/ --recursive --quiet
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com Inc. or its affiliates.
// SPDX-License-Identifier: Apache-2.0

const express = require('express')

const app = express()
Expand Down
2 changes: 1 addition & 1 deletion samples/sample-fargate-node-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "node index.js"
},
"author": "",
"license": "ISC",
"license": "Apache-2.0",
"dependencies": {
"ejs": "^3.1.7",
"express": "^4.16.3"
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/params/banking-production.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Parameters:
Environment: production
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/params/global.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Parameters:
Environment: testing
ServiceName: sample-node-app
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/public/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* Copyright Amazon.com Inc. or its affiliates. */
/* SPDX-License-Identifier: Apache-2.0 */

@import url(https://fonts.googleapis.com/css?family=Signika:700,300,600);

html, body {
Expand Down
4 changes: 2 additions & 2 deletions samples/sample-fargate-node-app/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# // SPDX-License-Identifier: Apache-2.0
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: '2010-09-09'
Description: ADF CloudFormation Sample Template (NodeJS Application)
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-fargate-node-app/views/index.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!doctype html>
<html lang="en">

<!-- Copyright Amazon.com Inc. or its affiliates. -->
<!-- SPDX-License-Identifier: Apache-2.0 -->

<head>
<meta charset="utf-8">
<title>Sample App</title>
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-iam/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

phases:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-iam/params/global.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Tags:
TagKey: my_tag
MyKey: new_value
4 changes: 2 additions & 2 deletions samples/sample-iam/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# // SPDX-License-Identifier: Apache-2.0
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: "2010-09-09"
Description: ADF CloudFormation Sample Template (IAM)
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-mono-repo/apps/alpha/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

env:
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-mono-repo/apps/alpha/params/global.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

Tags:
Repository: sample-mono-repo
App: Sample Mono Repo Alpha
4 changes: 2 additions & 2 deletions samples/sample-mono-repo/apps/alpha/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# // SPDX-License-Identifier: Apache-2.0
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: '2010-09-09'
Description: ADF CloudFormation Sample Template (Mono Repo/App A)
Expand Down
3 changes: 3 additions & 0 deletions samples/sample-mono-repo/apps/beta/buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates.
# SPDX-License-Identifier: Apache-2.0

version: 0.2

env:
Expand Down
Loading

0 comments on commit ca32953

Please sign in to comment.