Oracle Cloud Always Free Ampere A1 Compute instance
Terraform module which creates an Always Free Ampere A1 Compute instance in Oracle Cloud.
This module attempts to limit inputs to valid values for the Always Free instance.
Use of this module does not guarantee usage falls within the Always Free tier. For example,
other instances could be using some of the Always Free allocation.
Requirements
Providers
Name
Version
oci
>=4.37.0
Modules
No modules.
Resources
Inputs
Name
Description
Type
Default
Required
assign_ipv6_address
Whether or not an IPv6 address should be assigned to the instance. Requires a subnet with IPv6 enabled. Defaults to false
.
bool
false
no
assign_public_ip
Whether or not a public IP should be assigned to the instance. Defaults to null
which assigns a public IP based on whether the subnet is public or private. The Free Tier only includes 2 public IP addresses so you may need to set this to false
.
bool
null
no
availability_domain
The availability domain of the instance.
string
n/a
yes
boot_volume_size_in_gbs
A custom size for the boot volume. Must be between 50 and 200. If not set, defaults to the size of the image which is around 46 GB.
any
null
no
compartment_id
The OCID of the compartment containing the instance.
string
n/a
yes
hostname
The hostname of the instance.
string
n/a
yes
memory_in_gbs
The amount of memory in GB to assign to the instance. Must be between 1 and 24.
number
6
no
nsg_ids
A list of Network Security Group OCIDs to attach to the primary vnic.
list(string)
[]
no
ocpus
The number of OCPUs to assign to the instance. Must be between 1 and 4.
number
1
no
operating_system
The Operating System of the platform image to use. Valid values are "Canonical Ubuntu", "Oracle Linux", or "Oracle Linux Cloud Developer".
string
n/a
yes
operating_system_version
The version of the Operating System specified in operating_system
.
string
n/a
yes
ssh_authorized_keys
The public SSH key(s) that should be authorized for the default user.
string
n/a
yes
subnet_id
The OCID of the subnet to create the VNIC in.
string
n/a
yes
user_data
User data passed to cloud-init when the instance is started. Defaults to null
.
string
null
no
Outputs
Name
Description
instance_id
The OCID of the instance that was created
ipv6_address
The IPv6 address assigned to the instance.
private_ip
The private IP address assigned to the instance.
public_ip
The public IP address assigned to the instance.