This example is borrowed from the Amazon Web Services Terraform Provider, under the MPL-2.0 License.