Provides a Location Service Map.
resource "aws_location_map" "example" {
configuration {
style = "VectorHereBerlin"
}
map_name = "example"
}
The following arguments are required:
configuration
- (Required) Configuration block with the map style selected from an available data provider. Detailed below.map_name
- (Required) The name for the map resource.The following arguments are optional:
description
- (Optional) An optional description for the map resource.tags
- (Optional) Key-value tags for the map. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following arguments are required:
style
- (Required) Specifies the map style selected from an available data provider. Valid values can be found in the Location Service CreateMap API Reference.This resource exports the following attributes in addition to the arguments above:
create_time
- The timestamp for when the map resource was created in ISO 8601 format.map_arn
- The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all AWS.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.update_time
- The timestamp for when the map resource was last updated in ISO 8601 format.In Terraform v1.5.0 and later, use an import
block to import aws_location_map
resources using the map name. For example:
import {
to = aws_location_map.example
id = "example"
}
Using terraform import
, import aws_location_map
resources using the map name. For example:
% terraform import aws_location_map.example example