Skip to content

Commit

Permalink
fix: add version pinning on terraform modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kral2 committed Oct 6, 2021
1 parent a0acbb9 commit 467ded6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Given a version number MAJOR.MINOR.PATCH:
- MINOR version when adding functionality in a backwards compatible manner,
- PATCH version when making backwards compatible bug fixes.

## [0.1.0] - 2021-10-06
## [0.1.1] - 2021-10-06

Initial release.

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ This module deploys an instance with the necessary tools to start developing Inf

| Name | Source | Version |
|------|--------|---------|
| <a name="module_instance_iacbox"></a> [instance\_iacbox](#module\_instance\_iacbox) | oracle-terraform-modules/compute-instance/oci | n/a |
| <a name="module_vcn_iacbox"></a> [vcn\_iacbox](#module\_vcn\_iacbox) | oracle-terraform-modules/vcn/oci | n/a |
| <a name="module_instance_iacbox"></a> [instance\_iacbox](#module\_instance\_iacbox) | oracle-terraform-modules/compute-instance/oci | 2.1.0 |
| <a name="module_vcn_iacbox"></a> [vcn\_iacbox](#module\_vcn\_iacbox) | oracle-terraform-modules/vcn/oci | 3.0.0 |
## Resources

| Name | Type |
Expand All @@ -58,7 +58,6 @@ This module deploys an instance with the necessary tools to start developing Inf
| <a name="input_source_ocid"></a> [source\_ocid](#input\_source\_ocid) | The OCID of an image or a boot volume to use, depending on the value of source\_type. | `string` | n/a | yes |
| <a name="input_source_type"></a> [source\_type](#input\_source\_type) | The source type for the instance. | `string` | `"image"` | no |
| <a name="input_ssh_authorized_keys"></a> [ssh\_authorized\_keys](#input\_ssh\_authorized\_keys) | Public SSH keys path to be included in the ~/.ssh/authorized\_keys file for the default user on the instance. | `string` | n/a | yes |
| <a name="input_subnet_ocids"></a> [subnet\_ocids](#input\_subnet\_ocids) | The unique identifiers (OCIDs) of the subnets in which the instance primary VNICs are created. | `list(string)` | n/a | yes |
| <a name="input_tenancy_ocid"></a> [tenancy\_ocid](#input\_tenancy\_ocid) | n/a | `string` | `null` | no |
| <a name="input_user_data"></a> [user\_data](#input\_user\_data) | Provide your own base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. | `string` | `null` | no |
| <a name="input_user_ocid"></a> [user\_ocid](#input\_user\_ocid) | n/a | `string` | `null` | no |
Expand Down
7 changes: 5 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ locals {
}

module "vcn_iacbox" {
source = "oracle-terraform-modules/vcn/oci"
source = "oracle-terraform-modules/vcn/oci"
version = "3.0.0"

# general oci parameters
compartment_id = var.compartment_id
Expand Down Expand Up @@ -39,7 +40,9 @@ resource "oci_core_subnet" "vcn_iacbox_public" {
}

module "instance_iacbox" {
source = "oracle-terraform-modules/compute-instance/oci"
source = "oracle-terraform-modules/compute-instance/oci"
version = "2.1.0"

# general oci parameters
compartment_ocid = var.compartment_id
# freeform_tags = var.freeform_tags
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ variable "assign_public_ip" {
default = true
}

variable "subnet_ocids" {
description = "The unique identifiers (OCIDs) of the subnets in which the instance primary VNICs are created."
type = list(string)
}

## storage parameters

variable "block_storage_sizes_in_gbs" {
Expand Down

0 comments on commit 467ded6

Please sign in to comment.