mongodbatlas.ProjectIpAccessList provides an IP Access List entry resource. The access list grants access from IPs, CIDRs or AWS Security Groups (if VPC Peering is enabled) to clusters within the Project.
NOTE: Groups and projects are synonymous terms. You may find
groupIdin the official documentation.
IMPORTANT: When you remove an entry from the access list, existing connections from the removed address(es) may remain open for a variable amount of time. How much time passes before Atlas closes the connection depends on several factors, including how the connection was established, the particular behavior of the application or driver using the address, and the connection protocol (e.g., TCP or UDP). This is particularly important to consider when changing an existing IP address or CIDR block as they cannot be updated via the Provider, hence a change will force the destruction and recreation of entries.
IMPORTANT: During creation this resource does not validate whether the specified
ip_address,cidr_block, oraws_security_groupalready exists in the project’s access list (known limitation). Defining a duplicate entry will result in a successful resource creation associated to the existing entry.
Example Usage
Using CIDR Block
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const _this = new mongodbatlas.ProjectIpAccessList("this", {
projectId: projectId,
cidrBlock: "1.2.3.4/32",
comment: "cidr block test",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
this = mongodbatlas.ProjectIpAccessList("this",
project_id=project_id,
cidr_block="1.2.3.4/32",
comment="cidr block test")
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.NewProjectIpAccessList(ctx, "this", &mongodbatlas.ProjectIpAccessListArgs{
ProjectId: pulumi.Any(projectId),
CidrBlock: pulumi.String("1.2.3.4/32"),
Comment: pulumi.String("cidr block test"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var @this = new Mongodbatlas.ProjectIpAccessList("this", new()
{
ProjectId = projectId,
CidrBlock = "1.2.3.4/32",
Comment = "cidr block test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.ProjectIpAccessList;
import com.pulumi.mongodbatlas.ProjectIpAccessListArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new ProjectIpAccessList("this", ProjectIpAccessListArgs.builder()
.projectId(projectId)
.cidrBlock("1.2.3.4/32")
.comment("cidr block test")
.build());
}
}
resources:
this:
type: mongodbatlas:ProjectIpAccessList
properties:
projectId: ${projectId}
cidrBlock: 1.2.3.4/32
comment: cidr block test
Using IP Address
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const _this = new mongodbatlas.ProjectIpAccessList("this", {
projectId: projectId,
ipAddress: "2.3.4.5",
comment: "ip address test",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
this = mongodbatlas.ProjectIpAccessList("this",
project_id=project_id,
ip_address="2.3.4.5",
comment="ip address test")
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.NewProjectIpAccessList(ctx, "this", &mongodbatlas.ProjectIpAccessListArgs{
ProjectId: pulumi.Any(projectId),
IpAddress: pulumi.String("2.3.4.5"),
Comment: pulumi.String("ip address test"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var @this = new Mongodbatlas.ProjectIpAccessList("this", new()
{
ProjectId = projectId,
IpAddress = "2.3.4.5",
Comment = "ip address test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.ProjectIpAccessList;
import com.pulumi.mongodbatlas.ProjectIpAccessListArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new ProjectIpAccessList("this", ProjectIpAccessListArgs.builder()
.projectId(projectId)
.ipAddress("2.3.4.5")
.comment("ip address test")
.build());
}
}
resources:
this:
type: mongodbatlas:ProjectIpAccessList
properties:
projectId: ${projectId}
ipAddress: 2.3.4.5
comment: ip address test
Using an AWS Security Group
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const _this = new mongodbatlas.NetworkContainer("this", {
projectId: projectId,
atlasCidrBlock: "192.168.208.0/21",
providerName: "AWS",
regionName: "US_EAST_1",
});
const thisNetworkPeering = new mongodbatlas.NetworkPeering("this", {
projectId: projectId,
containerId: _this.containerId,
accepterRegionName: "us-east-1",
providerName: "AWS",
routeTableCidrBlock: "172.31.0.0/16",
vpcId: "vpc-0d93d6f69f1578bd8",
awsAccountId: "232589400519",
});
const thisProjectIpAccessList = new mongodbatlas.ProjectIpAccessList("this", {
projectId: projectId,
awsSecurityGroup: "sg-0026348ec11780bd1",
comment: "AWS Security Group test",
}, {
dependsOn: [thisNetworkPeering],
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
this = mongodbatlas.NetworkContainer("this",
project_id=project_id,
atlas_cidr_block="192.168.208.0/21",
provider_name="AWS",
region_name="US_EAST_1")
this_network_peering = mongodbatlas.NetworkPeering("this",
project_id=project_id,
container_id=this.container_id,
accepter_region_name="us-east-1",
provider_name="AWS",
route_table_cidr_block="172.31.0.0/16",
vpc_id="vpc-0d93d6f69f1578bd8",
aws_account_id="232589400519")
this_project_ip_access_list = mongodbatlas.ProjectIpAccessList("this",
project_id=project_id,
aws_security_group="sg-0026348ec11780bd1",
comment="AWS Security Group test",
opts = pulumi.ResourceOptions(depends_on=[this_network_peering]))
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
this, err := mongodbatlas.NewNetworkContainer(ctx, "this", &mongodbatlas.NetworkContainerArgs{
ProjectId: pulumi.Any(projectId),
AtlasCidrBlock: pulumi.String("192.168.208.0/21"),
ProviderName: pulumi.String("AWS"),
RegionName: pulumi.String("US_EAST_1"),
})
if err != nil {
return err
}
thisNetworkPeering, err := mongodbatlas.NewNetworkPeering(ctx, "this", &mongodbatlas.NetworkPeeringArgs{
ProjectId: pulumi.Any(projectId),
ContainerId: this.ContainerId,
AccepterRegionName: pulumi.String("us-east-1"),
ProviderName: pulumi.String("AWS"),
RouteTableCidrBlock: pulumi.String("172.31.0.0/16"),
VpcId: pulumi.String("vpc-0d93d6f69f1578bd8"),
AwsAccountId: pulumi.String("232589400519"),
})
if err != nil {
return err
}
_, err = mongodbatlas.NewProjectIpAccessList(ctx, "this", &mongodbatlas.ProjectIpAccessListArgs{
ProjectId: pulumi.Any(projectId),
AwsSecurityGroup: pulumi.String("sg-0026348ec11780bd1"),
Comment: pulumi.String("AWS Security Group test"),
}, pulumi.DependsOn([]pulumi.Resource{
thisNetworkPeering,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var @this = new Mongodbatlas.NetworkContainer("this", new()
{
ProjectId = projectId,
AtlasCidrBlock = "192.168.208.0/21",
ProviderName = "AWS",
RegionName = "US_EAST_1",
});
var thisNetworkPeering = new Mongodbatlas.NetworkPeering("this", new()
{
ProjectId = projectId,
ContainerId = @this.ContainerId,
AccepterRegionName = "us-east-1",
ProviderName = "AWS",
RouteTableCidrBlock = "172.31.0.0/16",
VpcId = "vpc-0d93d6f69f1578bd8",
AwsAccountId = "232589400519",
});
var thisProjectIpAccessList = new Mongodbatlas.ProjectIpAccessList("this", new()
{
ProjectId = projectId,
AwsSecurityGroup = "sg-0026348ec11780bd1",
Comment = "AWS Security Group test",
}, new CustomResourceOptions
{
DependsOn =
{
thisNetworkPeering,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.NetworkContainer;
import com.pulumi.mongodbatlas.NetworkContainerArgs;
import com.pulumi.mongodbatlas.NetworkPeering;
import com.pulumi.mongodbatlas.NetworkPeeringArgs;
import com.pulumi.mongodbatlas.ProjectIpAccessList;
import com.pulumi.mongodbatlas.ProjectIpAccessListArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new NetworkContainer("this", NetworkContainerArgs.builder()
.projectId(projectId)
.atlasCidrBlock("192.168.208.0/21")
.providerName("AWS")
.regionName("US_EAST_1")
.build());
var thisNetworkPeering = new NetworkPeering("thisNetworkPeering", NetworkPeeringArgs.builder()
.projectId(projectId)
.containerId(this_.containerId())
.accepterRegionName("us-east-1")
.providerName("AWS")
.routeTableCidrBlock("172.31.0.0/16")
.vpcId("vpc-0d93d6f69f1578bd8")
.awsAccountId("232589400519")
.build());
var thisProjectIpAccessList = new ProjectIpAccessList("thisProjectIpAccessList", ProjectIpAccessListArgs.builder()
.projectId(projectId)
.awsSecurityGroup("sg-0026348ec11780bd1")
.comment("AWS Security Group test")
.build(), CustomResourceOptions.builder()
.dependsOn(thisNetworkPeering)
.build());
}
}
resources:
this:
type: mongodbatlas:NetworkContainer
properties:
projectId: ${projectId}
atlasCidrBlock: 192.168.208.0/21
providerName: AWS
regionName: US_EAST_1
thisNetworkPeering:
type: mongodbatlas:NetworkPeering
name: this
properties:
projectId: ${projectId}
containerId: ${this.containerId}
accepterRegionName: us-east-1
providerName: AWS
routeTableCidrBlock: 172.31.0.0/16
vpcId: vpc-0d93d6f69f1578bd8
awsAccountId: '232589400519'
thisProjectIpAccessList:
type: mongodbatlas:ProjectIpAccessList
name: this
properties:
projectId: ${projectId}
awsSecurityGroup: sg-0026348ec11780bd1
comment: AWS Security Group test
options:
dependsOn:
- ${thisNetworkPeering}
IMPORTANT: In order to use AWS Security Group(s) VPC Peering must be enabled like above example.
Further Examples
- Project IP Access List
Create ProjectIpAccessList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectIpAccessList(name: string, args: ProjectIpAccessListArgs, opts?: CustomResourceOptions);@overload
def ProjectIpAccessList(resource_name: str,
args: ProjectIpAccessListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectIpAccessList(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
aws_security_group: Optional[str] = None,
cidr_block: Optional[str] = None,
comment: Optional[str] = None,
ip_address: Optional[str] = None,
timeouts: Optional[ProjectIpAccessListTimeoutsArgs] = None)func NewProjectIpAccessList(ctx *Context, name string, args ProjectIpAccessListArgs, opts ...ResourceOption) (*ProjectIpAccessList, error)public ProjectIpAccessList(string name, ProjectIpAccessListArgs args, CustomResourceOptions? opts = null)
public ProjectIpAccessList(String name, ProjectIpAccessListArgs args)
public ProjectIpAccessList(String name, ProjectIpAccessListArgs args, CustomResourceOptions options)
type: mongodbatlas:ProjectIpAccessList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProjectIpAccessListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProjectIpAccessListArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectIpAccessListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectIpAccessListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectIpAccessListArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var projectIpAccessListResource = new Mongodbatlas.ProjectIpAccessList("projectIpAccessListResource", new()
{
ProjectId = "string",
AwsSecurityGroup = "string",
CidrBlock = "string",
Comment = "string",
IpAddress = "string",
Timeouts = new Mongodbatlas.Inputs.ProjectIpAccessListTimeoutsArgs
{
Delete = "string",
Read = "string",
},
});
example, err := mongodbatlas.NewProjectIpAccessList(ctx, "projectIpAccessListResource", &mongodbatlas.ProjectIpAccessListArgs{
ProjectId: pulumi.String("string"),
AwsSecurityGroup: pulumi.String("string"),
CidrBlock: pulumi.String("string"),
Comment: pulumi.String("string"),
IpAddress: pulumi.String("string"),
Timeouts: &mongodbatlas.ProjectIpAccessListTimeoutsArgs{
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
},
})
var projectIpAccessListResource = new ProjectIpAccessList("projectIpAccessListResource", ProjectIpAccessListArgs.builder()
.projectId("string")
.awsSecurityGroup("string")
.cidrBlock("string")
.comment("string")
.ipAddress("string")
.timeouts(ProjectIpAccessListTimeoutsArgs.builder()
.delete("string")
.read("string")
.build())
.build());
project_ip_access_list_resource = mongodbatlas.ProjectIpAccessList("projectIpAccessListResource",
project_id="string",
aws_security_group="string",
cidr_block="string",
comment="string",
ip_address="string",
timeouts={
"delete": "string",
"read": "string",
})
const projectIpAccessListResource = new mongodbatlas.ProjectIpAccessList("projectIpAccessListResource", {
projectId: "string",
awsSecurityGroup: "string",
cidrBlock: "string",
comment: "string",
ipAddress: "string",
timeouts: {
"delete": "string",
read: "string",
},
});
type: mongodbatlas:ProjectIpAccessList
properties:
awsSecurityGroup: string
cidrBlock: string
comment: string
ipAddress: string
projectId: string
timeouts:
delete: string
read: string
ProjectIpAccessList Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ProjectIpAccessList resource accepts the following input properties:
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Aws
Security stringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - Cidr
Block string - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - Comment string
- Remark that explains the purpose or scope of this IP access list entry.
- Ip
Address string - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - Timeouts
Project
Ip Access List Timeouts
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Aws
Security stringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - Cidr
Block string - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - Comment string
- Remark that explains the purpose or scope of this IP access list entry.
- Ip
Address string - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - Timeouts
Project
Ip Access List Timeouts Args
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- aws
Security StringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - cidr
Block String - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - comment String
- Remark that explains the purpose or scope of this IP access list entry.
- ip
Address String - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - timeouts
Project
Ip Access List Timeouts
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- aws
Security stringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - cidr
Block string - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - comment string
- Remark that explains the purpose or scope of this IP access list entry.
- ip
Address string - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - timeouts
Project
Ip Access List Timeouts
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- aws_
security_ strgroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - cidr_
block str - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - comment str
- Remark that explains the purpose or scope of this IP access list entry.
- ip_
address str - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - timeouts
Project
Ip Access List Timeouts Args
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- aws
Security StringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - cidr
Block String - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - comment String
- Remark that explains the purpose or scope of this IP access list entry.
- ip
Address String - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectIpAccessList resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ProjectIpAccessList Resource
Get an existing ProjectIpAccessList resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProjectIpAccessListState, opts?: CustomResourceOptions): ProjectIpAccessList@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aws_security_group: Optional[str] = None,
cidr_block: Optional[str] = None,
comment: Optional[str] = None,
ip_address: Optional[str] = None,
project_id: Optional[str] = None,
timeouts: Optional[ProjectIpAccessListTimeoutsArgs] = None) -> ProjectIpAccessListfunc GetProjectIpAccessList(ctx *Context, name string, id IDInput, state *ProjectIpAccessListState, opts ...ResourceOption) (*ProjectIpAccessList, error)public static ProjectIpAccessList Get(string name, Input<string> id, ProjectIpAccessListState? state, CustomResourceOptions? opts = null)public static ProjectIpAccessList get(String name, Output<String> id, ProjectIpAccessListState state, CustomResourceOptions options)resources: _: type: mongodbatlas:ProjectIpAccessList get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aws
Security stringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - Cidr
Block string - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - Comment string
- Remark that explains the purpose or scope of this IP access list entry.
- Ip
Address string - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Timeouts
Project
Ip Access List Timeouts
- Aws
Security stringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - Cidr
Block string - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - Comment string
- Remark that explains the purpose or scope of this IP access list entry.
- Ip
Address string - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Timeouts
Project
Ip Access List Timeouts Args
- aws
Security StringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - cidr
Block String - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - comment String
- Remark that explains the purpose or scope of this IP access list entry.
- ip
Address String - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- timeouts
Project
Ip Access List Timeouts
- aws
Security stringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - cidr
Block string - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - comment string
- Remark that explains the purpose or scope of this IP access list entry.
- ip
Address string - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- timeouts
Project
Ip Access List Timeouts
- aws_
security_ strgroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - cidr_
block str - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - comment str
- Remark that explains the purpose or scope of this IP access list entry.
- ip_
address str - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- timeouts
Project
Ip Access List Timeouts Args
- aws
Security StringGroup - Unique identifier of the AWS security group to add to the access list. Mutually exclusive with
cidr_blockandip_address. - cidr
Block String - Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with
ip_addressandaws_security_group. - comment String
- Remark that explains the purpose or scope of this IP access list entry.
- ip
Address String - Single IP address to be added to the access list. Mutually exclusive with
cidr_blockandaws_security_group. - project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- timeouts Property Map
Supporting Types
ProjectIpAccessListTimeouts, ProjectIpAccessListTimeoutsArgs
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Import
IP Access List entries can be imported using the project_id and cidr_block or ip_address, e.g.
$ pulumi import mongodbatlas:index/projectIpAccessList:ProjectIpAccessList this 5d0f1f74cf09a29120e123cd-10.242.88.0/21
For more information, see MongoDB Atlas API Reference.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
