Get-EC2Tag -Filter @{ Name='resource-type';Value='instance'} |
ForEach-Object {if($_.Value -notmatch "^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$") {
Write-Output "The instance $($_.ResourceId) has invalid value for the tag $($_.Key) : $($_.Value)" }}
Get-EC2Tag -Filter @{ Name='resource-type';Value='instance'} |
ForEach-Object {if($_.Value -notmatch "^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$") {
Write-Output "The instance $($_.ResourceId) has invalid value for the tag $($_.Key) : $($_.Value)" }}
Add a Comment