Skip to content

Commit

Permalink
Updating module source in order to allow publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
fmdlc committed Aug 25, 2020
1 parent bfed0a2 commit 1658d8d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
37 changes: 32 additions & 5 deletions examples/demo-01/PLAN.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,45 @@
## Initializing
> Execute `terraform init`
```
```hcl
$: terraform init
Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Finding latest version of hashicorp/aws...
- Installing hashicorp/aws v3.3.0...
- Installed hashicorp/aws v3.3.0 (signed by HashiCorp)
The following providers do not have any version constraints in configuration,
so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain breaking
changes, we recommend adding version constraints in a required_providers block
in your configuration, with the constraint strings suggested below.
* hashicorp/aws: version = "~> 3.3.0"
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
```

## Creating a plan
> Execute `terraform plan`
```hcl
$: terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Expand Down Expand Up @@ -275,7 +302,7 @@ Terraform will perform the following actions:
# module.aws-batch.aws_batch_compute_environment.compute-environment will be created
+ resource "aws_batch_compute_environment" "compute-environment" {
+ arn = (known after apply)
+ compute_environment_name = "Demo-Compute-Environment"
+ compute_environment_name = "Demo-CE"
+ ecs_cluster_arn = (known after apply)
+ id = (known after apply)
+ service_role = (known after apply)
Expand All @@ -289,7 +316,7 @@ Terraform will perform the following actions:
+ desired_vcpus = 1
+ instance_role = (known after apply)
+ instance_type = [
+ "t2.small",
+ "optimal",
]
+ max_vcpus = 2
+ min_vcpus = 0
Expand Down
5 changes: 2 additions & 3 deletions examples/demo-01/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module "aws-batch" {
source = "../../"
#version = "0.1.0"

source = "fmdlc/aws-batch/module"
version = "0.1.0"
vpc_id = aws_vpc.main.id
security_groups = [aws_security_group.trusted.id]
ce_name = "Demo-CE"
Expand Down

0 comments on commit 1658d8d

Please sign in to comment.