This repository contains Terraform modules for the management of StreamNative's vendor access into a Cloud Provider.
Previous verions of these modules can be found in the following locations:
- terraform-aws-cloud//modules/managed-cloud?ref=v2.5.0: This was the original location of the AWS vendor access module, which has been moved to this repository. The last version released to the Terraform Registry was
v2.5.0-alpha
. - https://github.com/streamnative/terraform-aws-managed-cloud: This repository contains an older AWS vendor access module, which has been deprecated and is no longer in use.
The modules are organized by Cloud Provider. For example, the AWS modules are in the modules/aws
directory and the GCP modules (WIP) modules are in the modules/gcp
, and so on.
Examples of the modules can be found in the examples
directory.
Details on the modules themselves and their requirements can be found in their respective README files, contained in the modules
directory.
If you have used the previous version of the AWS vendor access module, your configuration should have looked something like this:
module "sn_managed_cloud" {
source = "github.com/streamnative/terraform-aws-cloud//modules/managed-cloud?ref=v2.5.0-alpha"
external_id = "o-kxb4r"
runtime_hosted_zone_allowed_ids = ["arn:aws:route53:::hostedzone/Z00048871IAX8IX9HGD0"]
region = "us-west-2"
use_runtime_policy = true
}
Upgrading to this version of the module is quite simple, but does involve a few minor changes.
- The
source
URL has changed togithub.com/streamnative/terraform--managed-cloud//modules/aws?ref=v3.0.0
(note the tag reference, which as of this writing isv3.0.0
). use_runtime_policy
has been removed, as it is now the default behavior.runtime_hosted_zone_allowed_ids
has been renamed tohosted_zone_allowed_ids
, and it now properly accepts a list of IDs for your hosted zones, rather than the full ARNs.
With these changes in mind, your configuration should now look like this:
module "sn_managed_cloud" {
source = "github.com/streamnative/terraform-managed-cloud//modules/aws?ref=v3.0.0"
external_id = "o-kxb4r"
hosted_zone_allowed_ids = ["Z00048871IAX8IX9HGD0"]
region = "us-west-2"
}
After making changes to your configuration, you can run terraform init
to download the new module, and then terraform apply
to apply the changes.
In most cases, you will see the module wanting to change 7 resources (the total number of resources created by this module, if use_runtime_policy
was set to true
).
Most of the changes are in the IAM policies, which allow for compatability with the v3.0.0 release of the terraform-aws-cloud
module (this Terraform module is used for creating a StreamNative Cloud EKS environment).
If you have questions or concerns with these changes, please reach out to your StreamNative account representative.